diff options
| -rw-r--r-- | alias | 1 | ||||
| -rw-r--r-- | tigrc | 10 |
2 files changed, 8 insertions, 3 deletions
| @@ -77,6 +77,7 @@ alias geothings='ssh geothings@geobingan.info' | |||
| 77 | alias geothings-test='ssh geothings@test.geothings.tw' | 77 | alias geothings-test='ssh geothings@test.geothings.tw' |
| 78 | 78 | ||
| 79 | # tig | 79 | # tig |
| 80 | alias cdt='cd ~/git/tig' | ||
| 80 | alias t='tig' | 81 | alias t='tig' |
| 81 | alias ta='tig --all' | 82 | alias ta='tig --all' |
| 82 | alias ts='tig status' | 83 | alias ts='tig status' |
| @@ -23,6 +23,10 @@ bind generic gr view-grep | |||
| 23 | # toggle case sensitive for search | 23 | # toggle case sensitive for search |
| 24 | bind generic w :toggle ignore-case | 24 | bind generic w :toggle ignore-case |
| 25 | 25 | ||
| 26 | # override refresh | ||
| 27 | bind generic R none | ||
| 28 | bind generic <C-R> refresh | ||
| 29 | |||
| 26 | # see reflog, reset refernece | 30 | # see reflog, reset refernece |
| 27 | bind generic L >sh -c "git reflog --pretty=raw | tig --pretty=raw" | 31 | bind generic L >sh -c "git reflog --pretty=raw | tig --pretty=raw" |
| 28 | bind generic ; ?git reset --hard HEAD@{"%(prompt Enter HEAD@{} number: )"} | 32 | bind generic ; ?git reset --hard HEAD@{"%(prompt Enter HEAD@{} number: )"} |
| @@ -54,7 +58,7 @@ bind main b none | |||
| 54 | bind main bn @git branch "%(prompt Enter branch name: )" %(commit) | 58 | bind main bn @git branch "%(prompt Enter branch name: )" %(commit) |
| 55 | bind main bd @git branch -d "%(prompt Delete branch: )" | 59 | bind main bd @git branch -d "%(prompt Delete branch: )" |
| 56 | bind main bD ?>git branch -D "%(prompt Delete branch anyway: )" | 60 | bind main bD ?>git branch -D "%(prompt Delete branch anyway: )" |
| 57 | bind main bv +sh -c "git branch -vv | grep '*'" | 61 | bind main bv +sh -c "git branch -vv | grep %(branch)" |
| 58 | bind main c @sh -c "git branch --points-at=%(commit) | \ | 62 | bind main c @sh -c "git branch --points-at=%(commit) | \ |
| 59 | sed -n '/^*/ {n;p}' | \ | 63 | sed -n '/^*/ {n;p}' | \ |
| 60 | (cat -; echo %(commit)) | \ | 64 | (cat -; echo %(commit)) | \ |
| @@ -77,7 +81,7 @@ bind main pP ?git push -u %(remote) %(branch):%(branch) | |||
| 77 | # reset/rebase/revert | 81 | # reset/rebase/revert |
| 78 | bind main u ?git reset %(commit) | 82 | bind main u ?git reset %(commit) |
| 79 | bind main U ?sh -c "git reset %(commit) && git stash push -m 'deprecated from reset'" | 83 | bind main U ?sh -c "git reset %(commit) && git stash push -m 'deprecated from reset'" |
| 80 | bind main <C-r> !?git rebase -i %(commit) | 84 | bind main R !?git rebase -i %(commit) |
| 81 | bind main ! ?git revert %(commit) | 85 | bind main ! ?git revert %(commit) |
| 82 | 86 | ||
| 83 | # tag | 87 | # tag |
| @@ -201,7 +205,7 @@ bind diff <Esc>p :?^diff --(git|cc) | |||
| 201 | 205 | ||
| 202 | # edit tigrc | 206 | # edit tigrc |
| 203 | bind help e >sh -c "vim ~/.tigrc" | 207 | bind help e >sh -c "vim ~/.tigrc" |
| 204 | bind help R :source ~/.tigrc | 208 | bind help <C-R> :source ~/.tigrc |
| 205 | 209 | ||
| 206 | #==================== | 210 | #==================== |
| 207 | # color | 211 | # color |