Add and fix git aliases

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
This commit is contained in:
Gaetan Semet 2013-07-15 12:00:57 +02:00
commit 8e86d871e3

View file

@ -10,13 +10,15 @@ compdef _git gl=git-pull
alias gch='git fetch'
compdef _git gch=git-fetch
alias gup='git pull --rebase'
compdef _git gup=git-fetch
compdef _git gup=git-pull
alias gpr='git pull --rebase'
compdef _git gpr=git-fetch
compdef _git gpr=git-pull
alias gp='git push'
compdef _git gp=git-push
alias gf='git fetch --all'
compdef _git gf='git-fetch'
alias gfa='git fetch --all'
compdef _git gfa='git fetch --all'
compdef _git gfa='git-fetch'
alias gd='git diff --color'
compdef _git gd=git-diff
gdv() { git diff -w "$@" | view - }