91e4f3d667cc04148fafc4675174424daf5f6b5a

Author
Daniel Hahler <git@thequod.de>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

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.

Diff

 1diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
 2index 8470c28a44e08558531791518739a6bc2a92fa2d..b21c6a8e070979bd9f496760419a5f3e83795c8a 100644
 3--- a/plugins/git/git.plugin.zsh
 4+++ b/plugins/git/git.plugin.zsh
 5@@ -12,7 +12,7 @@ compdef _git gp=git-push
 6 alias gd='git diff | mate'
 7 # WTF is mate??
 8 compdef _git gd=git-diff
 9-alias gdv='git diff -w "$@" | vim -R -'
10+gdv() { git diff -w "$@" | view - }
11 compdef gdv=git
12 alias gc='git commit -v'
13 compdef gc=git