mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
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
This commit is contained in:
parent
7f06a0cd82
commit
7f9b773350
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ alias gcd='git checkout develop'
|
||||||
alias gcmsg='git commit -m'
|
alias gcmsg='git commit -m'
|
||||||
alias gco='git checkout'
|
alias gco='git checkout'
|
||||||
alias gcount='git shortlog -sn'
|
alias gcount='git shortlog -sn'
|
||||||
compdef gcount=git
|
compdef _git gcount
|
||||||
alias gcp='git cherry-pick'
|
alias gcp='git cherry-pick'
|
||||||
alias gcpa='git cherry-pick --abort'
|
alias gcpa='git cherry-pick --abort'
|
||||||
alias gcpc='git cherry-pick --continue'
|
alias gcpc='git cherry-pick --continue'
|
||||||
|
@ -159,7 +159,7 @@ alias ghh='git help'
|
||||||
alias gignore='git update-index --assume-unchanged'
|
alias gignore='git update-index --assume-unchanged'
|
||||||
alias gignored='git ls-files -v | grep "^[[:lower:]]"'
|
alias gignored='git ls-files -v | grep "^[[:lower:]]"'
|
||||||
alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
|
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'
|
alias gk='\gitk --all --branches'
|
||||||
compdef _git gk='gitk'
|
compdef _git gk='gitk'
|
||||||
|
|
Loading…
Reference in a new issue