diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2012-11-07 21:23:06 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2012-11-07 21:23:06 +0000 |
commit | ce658b3c3c941262a0517594066b74e5ffe3c7f1 (patch) | |
tree | 7ff4bbf4281b66c69418ee4e10f57dd3a1dc2bf6 /Completion/Unix/Command | |
parent | a8ffff2cb774a83584e4467b14c41517973c5468 (diff) | |
download | zsh-ce658b3c3c941262a0517594066b74e5ffe3c7f1.tar.gz zsh-ce658b3c3c941262a0517594066b74e5ffe3c7f1.tar.xz zsh-ce658b3c3c941262a0517594066b74e5ffe3c7f1.zip |
Benjamin R. Haskell: 30737: make custom completions for git aliases easier
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r-- | Completion/Unix/Command/_git | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 2c0c0b270..2b6a36956 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -6073,7 +6073,7 @@ _git() { aliases=(${(f)${${${(f)"$(_call_program aliases git config --get-regexp '\^alias\.')"}#alias.}/ /$'\n'}/(#e)/$'\n'}) (( $#aliases % 2 == 0 )) && git_aliases=($aliases) - if (( $+git_aliases[$words[2]] && !$+commands[git-$words[2]] )); then + if (( $+git_aliases[$words[2]] && !$+commands[git-$words[2]] && !$+functions[_git-$words[2]] )); then local -a tmpwords expalias expalias=(${(z)git_aliases[$words[2]]}) tmpwords=(${words[1]} ${expalias}) |