-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tigrc
48 lines (37 loc) · 1.17 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
42
43
44
45
46
47
48
# Add commit hash in main view
set main-view = line-number:no,interval=5 id:yes date:default author:full commit-title:yes,graph,refs,overflow=no
set diff-options = --show-signature
# Short date
set main-view-date = custom
set main-view-date-format = "%Y-%m-%d %H:%M"
# Automatically refresh after a command
set refresh-mode = after-command
# Interactive adding
bind main A !git a %(file)
bind diff A !git a %(file)
# Commit
bind main c !git c
bind diff c !git c
# Edit file
bind main e edit
bind diff e edit
# Rebase
bind main R !git ri %(commit)^
bind diff R !git ri %(commit)^
# Fixup
bind main F !git cf %(commit)
bind diff F !git cf %(commit)
# Soft reset on HEAD
bind main H !git r HEAD^
bind diff H !git r HEAD^
# Tag
bind main T !git tag -f -s %(prompt) %(commit)
# Copy to clipboard commit ID or commit subject/message
bind generic YI @sh -c "printf '%s' %(commit) | pbcopy"
bind generic YM @sh -c "git rev-list --format=%B --max-count=1 %(commit) | sed '1d' | pbcopy"
# Colors
color cursor white black bold
color id yellow default bold
color author green default bold
color title-blur white black
color title-focus white black bold