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
... | ... |
@@ -6,24 +6,24 @@ compdef _git gst=git-status |
6 | 6 |
alias gl='git pull' |
7 | 7 |
compdef _git gl=git-pull |
8 | 8 |
alias gup='git fetch && git rebase' |
9 |
-compdef gup=git |
|
9 |
+compdef _git gup=git-fetch |
|
10 | 10 |
alias gp='git push' |
11 | 11 |
compdef _git gp=git-push |
12 | 12 |
alias gd='git diff | mate' |
13 | 13 |
# WTF is mate?? |
14 | 14 |
compdef _git gd=git-diff |
15 | 15 |
alias gdv='git diff -w "$@" | vim -R -' |
16 |
-compdef gdv=git |
|
16 |
+compdef _git gdv=git-diff |
|
17 | 17 |
alias gc='git commit -v' |
18 |
-compdef gc=git |
|
18 |
+compdef _git gc=git-commit |
|
19 | 19 |
alias gca='git commit -v -a' |
20 |
-compdef gca=git |
|
20 |
+compdef _git gca=git-commit |
|
21 | 21 |
alias gco='git checkout' |
22 | 22 |
compdef _git gco=git-checkout |
23 | 23 |
alias gb='git branch' |
24 | 24 |
compdef _git gb=git-branch |
25 | 25 |
alias gba='git branch -a' |
26 |
-compdef gba=git |
|
26 |
+compdef _git gba=git-branch |
|
27 | 27 |
alias gcount='git shortlog -sn' |
28 | 28 |
compdef gcount=git |
29 | 29 |
alias gcp='git cherry-pick' |