1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 13:50:09 +00:00

Fix gdv: make it a function, and use view.

I've changed it to use `view` instead of `vim -R` to make it hopefully
more editor-agnostic.
This commit is contained in:
Daniel Hahler 2011-04-04 00:54:43 +02:00 committed by Robby Russell
parent 0cc0915bf8
commit 91e4f3d667

View file

@ -12,7 +12,7 @@ compdef _git gp=git-push
alias gd='git diff | mate'
# WTF is mate??
compdef _git gd=git-diff
alias gdv='git diff -w "$@" | vim -R -'
gdv() { git diff -w "$@" | view - }
compdef gdv=git
alias gc='git commit -v'
compdef gc=git