summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2016-10-04 17:23:20 +0200
committerMarc Cornellà <marc.cornella@live.com>2016-10-04 17:23:20 +0200
commit7f9b7733507d57a6cd4f38d0c0db830647c1940d (patch)
tree0cb7e4d6ea8d700394d9844d6caa62d8841bab49
parent7f06a0cd8238747277130334c264b7a679403ba4 (diff)
downloadzsh-7f9b7733507d57a6cd4f38d0c0db830647c1940d.tar.gz
zsh-7f9b7733507d57a6cd4f38d0c0db830647c1940d.tar.bz2
zsh-7f9b7733507d57a6cd4f38d0c0db830647c1940d.zip
Fix compdef commands in git plugin
The command `compdef command=git` returns an error in some cases, the appropriate command is `compdef _git command`. Fixes #5442
-rw-r--r--plugins/git/git.plugin.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index 28fb253dd..178f1deb2 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -76,7 +76,7 @@ alias gcd='git checkout develop'
alias gcmsg='git commit -m'
alias gco='git checkout'
alias gcount='git shortlog -sn'
-compdef gcount=git
+compdef _git gcount
alias gcp='git cherry-pick'
alias gcpa='git cherry-pick --abort'
alias gcpc='git cherry-pick --continue'
@@ -159,7 +159,7 @@ alias ghh='git help'
alias gignore='git update-index --assume-unchanged'
alias gignored='git ls-files -v | grep "^[[:lower:]]"'
alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
-compdef git-svn-dcommit-push=git
+compdef _git git-svn-dcommit-push=git
alias gk='\gitk --all --branches'
compdef _git gk='gitk'