summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gitconfig4
-rw-r--r--tigrc17
2 files changed, 17 insertions, 4 deletions
diff --git a/gitconfig b/gitconfig
index edd6c82..2036c46 100644
--- a/gitconfig
+++ b/gitconfig
@@ -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
diff --git a/tigrc b/tigrc
index 3163698..83a510e 100644
--- a/tigrc
+++ b/tigrc
@@ -4,16 +4,23 @@
4 4
5bind generic x :toggle id 5bind generic x :toggle id
6bind generic 9 !@sh -c "echo -n %(commit) | head -c7 | xclip -selection c" 6bind generic 9 !@sh -c "echo -n %(commit) | head -c7 | xclip -selection c"
7bind generic <Esc>g move-first-line 7bind generic g none
8bind generic <Esc>G move-last-line 8bind generic gg move-first-line
9bind generic gr view-grep
10bind generic G move-last-line
9bind generic w :toggle ignore-case 11bind generic w :toggle ignore-case
10 12
13bind main gG :toggle commit-title-graph
14bind main G move-last-line
11bind main c ?git checkout %(commit) 15bind main c ?git checkout %(commit)
12bind main T @git tag "%(prompt Enter tag name: )" %(commit) 16bind main T @git tag "%(prompt Enter tag name: )" %(commit)
13bind main <Ctrl-r> !?git rebase -i %(commit) 17bind main <Ctrl-r> !?git rebase -i %(commit)
14bind main M ?git merge %(commit) 18bind main M ?git merge %(commit)
15bind main P ?git push 19bind main P ?git push
16bind main b @git checkout -b "%(prompt Enter branch name: )" %(commit) 20bind main b @git checkout -b "%(prompt Enter branch name: )" %(commit)
21bind main V @git log -S "%(prompt Enter search word: )"
22bind main gd ?git branch -d %(branch)
23bind main gD ?git branch -D %(branch)
17 24
18set main-view = \ 25set main-view = \
19 date:default \ 26 date:default \
@@ -38,7 +45,9 @@ bind refs c ?git checkout %(branch)
38 45
39set ignore-case = true 46set ignore-case = true
40set line-graphics = utf-8 47set line-graphics = utf-8
48set refresh-mode = after-command
41# set mouse = true 49# set mouse = true
42 50
43color diff-header default magenta 51color diff-header black yellow
44color diff-chunk black blue 52color diff-chunk white magenta
53bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\""