-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tigrc
43 lines (34 loc) · 1.24 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
# view settings
set main-view = id:yes date:default,local=yes author commit-title:graph=yes,refs=yes,overflow=false
set blame-view = date:default id:yes,color line-number:yes,interval=1 text
set pager-view = text
set stage-view = text
set log-view = text
set blob-view = text
set diff-view = text:yes,commit-title-overflow=no
set tab-size = 2
set ignore-case = true
set split-view-width = 80%
set split-view-height = 80%
set diff-options = -m --first-parent
set diff-highlight = true
set refresh-mode = auto
set mouse = true
set mouse-scroll = 1
color cursor black white bold
# key bindings
bind generic C !git commit
bind generic A !git commit --amend
bind generic F !git fetch %(remote)
bind generic U !sh -c "git pull origin `git rev-parse --abbrev-ref HEAD` --recurse-submodules && git fetch && git branch --merged | grep -v 'master$' | grep -v 'develop$' | grep -v 'main$' | xargs -I % git branch -d %"
bind generic P !git push %(remote) %(repo:head)
bind generic S !git switch -c "%(prompt Enter new branch name: )"
bind generic g move-first-line
bind generic G move-last-line
bind status D ?@rm %(file)
# for large repos
#
# git's default is reverse chronological order
set commit-order = default
# limit number of commits
set main-options = -n 500