-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.tigrc
143 lines (126 loc) · 5.57 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# Appearance options
set id-width = 8
set blame-options = -C -C -C
# set horizontal-scroll = 33%
set show-notes = yes
set show-changes = yes
# set vertical-split = no
set split-view-height = 70%
set split-view-width = 70%
set status-show-untracked-dirs = yes
set tab-size = 2
set diff-context = 3
set ignore-space = some
set commit-order = topo
set ignore-case = yes
set wrap-lines = yes
set focus-child = yes
# Show commit ID in left of main view
set main-view = id date author:email-user commit-title:graph=yes,refs=yes
# Show line number in blame view
set blame-view = date:default author:email-user id:yes,color line-number:yes,interval=1 text
# Alias vim-like behavior
bind generic g move-first-line
bind generic G move-last-line
bind main g move-first-line
bind main G move-last-line
bind diff g move-first-line
bind diff G move-last-line
bind generic S view-stash
# Yank commit hash
bind generic y none
bind generic y !@sh -c "echo -n %(commit) | xsel --clipboard --input"
# git commit amend
bind generic + !git commit --amend
# Show line nuber
set pager-view = line-number:yes,interval=1 text
set stage-view = line-number:yes,interval=1 text
set log-view = line-number:yes,interval=1 text
set blob-view = line-number:yes,interval=1 text
set diff-view = line-number:yes,interval=1 text:yes,commit-title-overflow=no
# Execute rebase -i on selected commit
bind main R !git rebase -i %(commit)
bind diff R !git rebase -i %(commit)
# Refresh draw
bind generic Ctrl-l refresh
# # Change commit diff color
color diff-header black cyan
color diff-chunk black magenta
# Execute git difftool on selected commit or branch
bind generic D none
bind main D !sh -c "git difftool %(commit)~ %(commit)"
bind diff D !sh -c "git difftool %(commit)~ %(commit)"
bind refs D !sh -c "git difftool %(branch)"
bind main . !sh -c "git diff --name-only %(commit)~ %(commit)"
bind diff . !sh -c "git diff --name-only %(commit)~ %(commit)"
bind refs . !sh -c "git diff --name-only %(branch)"
# General colors
# https://github.com/edentsai/tig-theme-molokai-like/blob/master/colors/molokai-like-theme.tigrc
color default 253 233
color cursor default 237
color status 250 235
color title-focus default 238
color title-blur default 238
color delimiter 241 default
color header 186 236 bold
color section 186 default
color line-number 102 235
color id 208 default
color date 67 default
color author 135 default
color mode 166 default
color overflow 241 default
color directory 69 default
color file default default
color file-size default default
color grep.file 166 234
# Main view colors
color graph-commit 161 default
color main-head 144 default bold
color main-remote 81 default
color main-tracked 222 default
color main-tag 197 default
color main-local-tag 161 default
color main-ref 144 default
# Palette colors
color palette-0 239 default
color palette-1 242 default
color palette-2 245 default
color palette-3 248 default
color palette-4 237 default
color palette-5 240 default
color palette-6 243 default
color palette-7 246 default
color palette-8 249 default
color palette-9 238 default
color palette-10 241 default
color palette-11 244 default
color palette-12 247 default
color palette-13 236 default
# Status view colors
color status.header 186 236 bold
color status.section 186 default
color stat-staged green default
color stat-unstaged red default
color stat-untracked red default
# Help view colors
color help.header 186 236 bold
color help.section 186 default
color help-group 69 default
color help-action 166 default
# Diff view colors
color "commit " 208 234
color "Refs: " 197 234
color "Author: " 135 default
color "AuthorDate: " 67 default
color "Commit: " 141 default
color "CommitDate: " 67 default
color "Merge: " 161 default
color "---" 67 default
color diff-index 67 default
color diff-stat 166 234
color diff-add-highlight 10 22
color diff-del-highlight 9 52
# Signature colors
color "gpg: " 23 default
color "Primary key fingerprint: " 23 default