-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tigrc
41 lines (30 loc) · 1.11 KB
/
.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
40
41
# option setting
#
set main-view = id date author commit-title:graph=yes,refs=yes
set diff-options = -m --first-parent
set line-graphics = utf-8
set tab-size = 2
set ignore-space = all
# set vertical-split = yes
# set split-view-width = 75%
# NOT: External user-defined command
# from tigrc document
# http://jonas.nitro.dk/tig/tigrc.5.html#_external_user_defined_command
#
# ! Run the command in the foreground with output shown.
# @ Run the command in the background with no output.
# ? Prompt the user before executing the command.
# < Exit Tig after executing the command.
# bind setting
bind status + !git commit --amend
bind status D !@?git checkout HEAD -- %(file)
bind status T !@?git checkout --theirs %(file)
bind status O !@?git checkout --ours %(file)
bind main p !@?<git pull %(remote) %(branch):%(branch)
bind main P !@?<git push %(remote) %(branch):%(branch)
bind main P !@?<git push %(remote) %(branch):%(branch)
bind main E !@?<git reset --hard %(commit)
bind main c !@?git checkout %(branch)
bind stash s !@?git stash
bind main R !git rebase -i %(commit)
bind diff R !git rebase -i %(commit)