Browse code

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.

Daniel Hahler authored on 03/04/2011 at 22:54:43
Showing 1 changed files
... ...
@@ -12,7 +12,7 @@ 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
-alias gdv='git diff -w "$@" | vim -R -'
15
+gdv() { git diff -w "$@" | view - }
16 16
 compdef gdv=git
17 17
 alias gc='git commit -v'
18 18
 compdef gc=git