-
Notifications
You must be signed in to change notification settings - Fork 1
/
tigrc
20 lines (16 loc) · 859 Bytes
/
tigrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
set main-view = line-number:no,interval=5 id:yes date:default author:full commit-title:yes,graph,refs,overflow=no
set tree-view = line-number:no,interval=5 mode author:full file-size date:default id:yes file-name
set refs-view = line-number:no id:yes date:default author:full ref commit-title
set refresh-mode = auto
# requires version >= 2.2.1
set diff-highlight = /usr/share/doc/git/contrib/diff-highlight/diff-highlight
# use vim-like bindings here
# in main view, G still toggle Graph-visualization
bind generic g move-first-line
bind generic G move-last-line
bind generic <Ctrl-g> view-grep
bind main i !@sh -c "echo -n $(git rev-parse --short %(commit)) | xclip -selection c"
bind main I !@sh -c "echo -n %(commit) | xclip -selection c"
bind main c !git checkout %(commit)
bind stash A !git stash apply %(stash)
bind stash P >git stash pop %(stash)