-
Notifications
You must be signed in to change notification settings - Fork 5
/
.tigrc
39 lines (28 loc) · 888 Bytes
/
.tigrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Description : config for tig
# Author : tracyone<[email protected]>
# Date : 2016-12-25 14:18
# variable setting
set commit-order = default
set mouse = yes
set main-options = -n 1000
# vim-fugitive like keybinding in status-view
bind status - status-update
bind status U status-revert
bind status c none
bind status cc !git commit
bind status D !git difftool
bind status ca !git commit --amend
# vim-like keybinding
bind generic g none
bind generic gg move-first-line
bind main G none
bind generic G move-last-line
bind generic <C-f> move-page-down
bind generic <C-b> move-page-up
bind status gp !git push %(remote) %(branch)
# User-defined external command to amend the last commit
bind status + !git commit --amend
# User-defined internal command that reloads ~/.tigrc
bind generic S :source ~/.tigrc
# limit the max load log history
# vim: set ft=config: