-
Notifications
You must be signed in to change notification settings - Fork 2
/
.tigrc
51 lines (40 loc) · 1.36 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
49
50
51
# 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 add -p %(file)
bind diff A !git add -p %(file)
# Edit file
bind main e edit
bind diff e edit
# Rebase
bind main R !git rebase -i %(commit)^
bind diff R !git rebase -i %(commit)^
# Fixup
bind main F !git commit --fixup %(commit)
bind diff F !git commit --fixup %(commit)
# Tag
bind main T !git tag -f -s %(prompt) %(commit)
# Push
bind main P !git push origin
bind status P !git push origin
# 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
set git-colors = no
color cursor black green
color search-result black yellow
color line-number red black
color title-focus black yellow
color title-blur black magenta
color diff-header yellow default
color diff-index blue default
color diff-chunk magenta default
color "Reported-by:" green default
color tree.date black cyan bold