提交 91e4f3d6 编写于 作者: D Daniel Hahler 提交者: Robby Russell

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.
上级 0cc0915b
...@@ -12,7 +12,7 @@ compdef _git gp=git-push ...@@ -12,7 +12,7 @@ compdef _git gp=git-push
alias gd='git diff | mate' alias gd='git diff | mate'
# WTF is mate?? # WTF is mate??
compdef _git gd=git-diff compdef _git gd=git-diff
alias gdv='git diff -w "$@" | vim -R -' gdv() { git diff -w "$@" | view - }
compdef gdv=git compdef gdv=git
alias gc='git commit -v' alias gc='git commit -v'
compdef gc=git compdef gc=git
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册