diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2020-12-19 17:19:28 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2020-12-19 17:19:28 +0800 |
commit | 322d421c0fa8e8dd0be75e202797218027df3d69 (patch) | |
tree | 25a80d1fb1a57b443f6b0295e8a5678748ee849d | |
parent | 7ee29f1c5397dc02db396951ab7f31ca64ebd136 (diff) |
update
-rw-r--r-- | alias | 1 | ||||
-rw-r--r-- | tigrc | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -101,6 +101,7 @@ alias cdd='cd ~/Downloads' | |||
101 | alias cdD='cd ~/Documents' | 101 | alias cdD='cd ~/Documents' |
102 | alias cdP='cd ~/Pictures' | 102 | alias cdP='cd ~/Pictures' |
103 | alias cdV='cd ~/Videos' | 103 | alias cdV='cd ~/Videos' |
104 | alias cdb='cd ~/git/bashblog' | ||
104 | 105 | ||
105 | # git | 106 | # git |
106 | unalias gc &> /dev/null # override zsh plugin alias | 107 | unalias gc &> /dev/null # override zsh plugin alias |
@@ -296,6 +296,9 @@ bind tree m >tig --follow -- %(file) | |||
296 | 296 | ||
297 | bind tree xt +sh -c "git rev-parse %(commit)^{tree} | xsel -ib -o | awk '{print \"Tree Clipped\", $1}'" | 297 | bind tree xt +sh -c "git rev-parse %(commit)^{tree} | xsel -ib -o | awk '{print \"Tree Clipped\", $1}'" |
298 | 298 | ||
299 | bind tree c NONE | ||
300 | bind tree cp +sh -c "git cat-file -p %(blob) >%(file) && echo File copied to %(file)" | ||
301 | |||
299 | bind tree . >sh -c "git diff --patch-with-stat %(ref) -- %(file) | tig" | 302 | bind tree . >sh -c "git diff --patch-with-stat %(ref) -- %(file) | tig" |
300 | 303 | ||
301 | #==================== | 304 | #==================== |