diff options
| author | typebrook <typebrook@gmail.com> | 2019-02-27 18:34:09 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2019-02-27 18:34:09 +0800 |
| commit | 98bc08b1da020efbeb3397b1c735a8337377eb69 (patch) | |
| tree | a3034bef5ab89236db05c11e3466e2459c84b599 | |
| parent | ddd5d15b8d5af2532b5a4141dad678d5b54cb6b5 (diff) | |
update tigrc
| -rw-r--r-- | gitconfig | 4 | ||||
| -rw-r--r-- | tigrc | 17 |
2 files changed, 17 insertions, 4 deletions
| @@ -3,3 +3,7 @@ | |||
| 3 | name = typebrook | 3 | name = typebrook |
| 4 | [alias] | 4 | [alias] |
| 5 | reorder = "!GIT_SEQUENCE_EDITOR=\"sed -i -n 'h;1n;2p;g;p'\" git rebase -i HEAD~2" | 5 | reorder = "!GIT_SEQUENCE_EDITOR=\"sed -i -n 'h;1n;2p;g;p'\" git rebase -i HEAD~2" |
| 6 | [core] | ||
| 7 | pager = tig | ||
| 8 | [color] | ||
| 9 | ui = off | ||
| @@ -4,16 +4,23 @@ | |||
| 4 | 4 | ||
| 5 | bind generic x :toggle id | 5 | bind generic x :toggle id |
| 6 | bind generic 9 !@sh -c "echo -n %(commit) | head -c7 | xclip -selection c" | 6 | bind generic 9 !@sh -c "echo -n %(commit) | head -c7 | xclip -selection c" |
| 7 | bind generic <Esc>g move-first-line | 7 | bind generic g none |
| 8 | bind generic <Esc>G move-last-line | 8 | bind generic gg move-first-line |
| 9 | bind generic gr view-grep | ||
| 10 | bind generic G move-last-line | ||
| 9 | bind generic w :toggle ignore-case | 11 | bind generic w :toggle ignore-case |
| 10 | 12 | ||
| 13 | bind main gG :toggle commit-title-graph | ||
| 14 | bind main G move-last-line | ||
| 11 | bind main c ?git checkout %(commit) | 15 | bind main c ?git checkout %(commit) |
| 12 | bind main T @git tag "%(prompt Enter tag name: )" %(commit) | 16 | bind main T @git tag "%(prompt Enter tag name: )" %(commit) |
| 13 | bind main <Ctrl-r> !?git rebase -i %(commit) | 17 | bind main <Ctrl-r> !?git rebase -i %(commit) |
| 14 | bind main M ?git merge %(commit) | 18 | bind main M ?git merge %(commit) |
| 15 | bind main P ?git push | 19 | bind main P ?git push |
| 16 | bind main b @git checkout -b "%(prompt Enter branch name: )" %(commit) | 20 | bind main b @git checkout -b "%(prompt Enter branch name: )" %(commit) |
| 21 | bind main V @git log -S "%(prompt Enter search word: )" | ||
| 22 | bind main gd ?git branch -d %(branch) | ||
| 23 | bind main gD ?git branch -D %(branch) | ||
| 17 | 24 | ||
| 18 | set main-view = \ | 25 | set main-view = \ |
| 19 | date:default \ | 26 | date:default \ |
| @@ -38,7 +45,9 @@ bind refs c ?git checkout %(branch) | |||
| 38 | 45 | ||
| 39 | set ignore-case = true | 46 | set ignore-case = true |
| 40 | set line-graphics = utf-8 | 47 | set line-graphics = utf-8 |
| 48 | set refresh-mode = after-command | ||
| 41 | # set mouse = true | 49 | # set mouse = true |
| 42 | 50 | ||
| 43 | color diff-header default magenta | 51 | color diff-header black yellow |
| 44 | color diff-chunk black blue | 52 | color diff-chunk white magenta |
| 53 | bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\"" | ||