diff options
author | typebrook <typebrook@gmail.com> | 2019-03-26 00:43:18 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-03-26 00:43:18 +0800 |
commit | 7f323cd0764f43f519c9d6972cde58b1722c52c6 (patch) | |
tree | 46fd2c9e8280fc5cdfcbffac92cb98bec8c1cc8c | |
parent | a5a6f77c15fe14f4c9d8219268d8cb1489ac6bc8 (diff) |
update
-rw-r--r-- | alias | 1 | ||||
-rw-r--r-- | tigrc | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -68,7 +68,6 @@ alias t='tig' | |||
68 | alias ta='tig --all' | 68 | alias ta='tig --all' |
69 | alias ts='tig status' | 69 | alias ts='tig status' |
70 | alias tg='tig grep' | 70 | alias tg='tig grep' |
71 | alias tr='tig refs' | ||
72 | alias tl='tig log' | 71 | alias tl='tig log' |
73 | alias ty='tig stash' | 72 | alias ty='tig stash' |
74 | alias rl='git reflog --pretty=raw | tig --pretty=raw' | 73 | alias rl='git reflog --pretty=raw | tig --pretty=raw' |
@@ -74,6 +74,10 @@ bind status D ?rm %(file) | |||
74 | 74 | ||
75 | # stash view | 75 | # stash view |
76 | bind stash a ?git stash apply %(stash) | 76 | bind stash a ?git stash apply %(stash) |
77 | bind stash n @sh -c "git stash drop %(stash) | \ | ||
78 | awk '{print $3}' | \ | ||
79 | tr -d '()' | \ | ||
80 | xargs git stash store -m '%(prompt Enter stash name: )'" | ||
77 | 81 | ||
78 | # tree view | 82 | # tree view |
79 | bind tree d ?rm %(file) | 83 | bind tree d ?rm %(file) |