We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d76052 commit 2769e56Copy full SHA for 2769e56
contrib/completion/git-completion.zsh
@@ -196,8 +196,9 @@ __git_zsh_cmd_common ()
196
__git_zsh_cmd_alias ()
197
{
198
local -a list
199
- list=(${${${(0)"$(git config -z --get-regexp '^alias\.')"}#alias.}%$'\n'*})
200
- _describe -t alias-commands 'aliases' list $* && _ret=0
+ list=(${${(0)"$(git config -z --get-regexp '^alias\.*')"}#alias.})
+ list=(${(f)"$(printf "%s:alias for '%s'\n" ${(f@)list})"})
201
+ _describe -t alias-commands 'aliases' list && _ret=0
202
}
203
204
__git_zsh_cmd_all ()
0 commit comments