1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-23 07:58:00 +00:00

Further git completion improovements

In detail:
gup - now completes with remotes like git fetch would
gdv - got git diff completions
gc/gca - now zsh will suggest files in staging area
gba - suggestions as for git branch
This commit is contained in:
Jakub Nawalaniec 2011-04-03 21:28:19 +02:00
parent e684afcba0
commit e4ded4e6ff

View File

@ -6,24 +6,24 @@ compdef _git gst=git-status
alias gl='git pull' alias gl='git pull'
compdef _git gl=git-pull compdef _git gl=git-pull
alias gup='git fetch && git rebase' alias gup='git fetch && git rebase'
compdef gup=git compdef _git gup=git-fetch
alias gp='git push' alias gp='git push'
compdef _git gp=git-push compdef _git gp=git-push
alias gd='git diff | mate' alias gd='git diff | mate'
# WTF is mate?? # WTF is mate??
compdef _git gd=git-diff compdef _git gd=git-diff
alias gdv='git diff -w "$@" | vim -R -' alias gdv='git diff -w "$@" | vim -R -'
compdef gdv=git compdef _git gdv=git-diff
alias gc='git commit -v' alias gc='git commit -v'
compdef gc=git compdef _git gc=git-commit
alias gca='git commit -v -a' alias gca='git commit -v -a'
compdef gca=git compdef _git gca=git-commit
alias gco='git checkout' alias gco='git checkout'
compdef _git gco=git-checkout compdef _git gco=git-checkout
alias gb='git branch' alias gb='git branch'
compdef _git gb=git-branch compdef _git gb=git-branch
alias gba='git branch -a' alias gba='git branch -a'
compdef gba=git compdef _git gba=git-branch
alias gcount='git shortlog -sn' alias gcount='git shortlog -sn'
compdef gcount=git compdef gcount=git
alias gcp='git cherry-pick' alias gcp='git cherry-pick'