diff options
author | Daniel Hahler <git@thequod.de> | 2011-04-04 00:54:43 +0200 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2011-04-12 10:11:53 +0200 |
commit | 91e4f3d667cc04148fafc4675174424daf5f6b5a (patch) | |
tree | 3f6109456032e974da02c51e647f7a30b6e0a6e9 | |
parent | 0cc0915bf83c1915575182d1287abfc6dd3e6f3c (diff) | |
download | zsh-91e4f3d667cc04148fafc4675174424daf5f6b5a.tar.gz zsh-91e4f3d667cc04148fafc4675174424daf5f6b5a.tar.bz2 zsh-91e4f3d667cc04148fafc4675174424daf5f6b5a.zip |
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.
-rw-r--r-- | plugins/git/git.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 8470c28a4..b21c6a8e0 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -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 |