-
Notifications
You must be signed in to change notification settings - Fork 1
/
mytigrc
39 lines (39 loc) · 1.43 KB
/
mytigrc
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
set main-view-id-display = yes
set line-graphics = ascii
set diff-highlight = true
set tab-size = 4
set mouse = true
set main-view-date-local = yes
set diff-options = -m --first-parent
# main view
bind main . !git diff %(commit)
bind reflog . !git diff %(commit)
bind main B ?git branch '%(prompt Enter new-branch-name :)' %(commit)
bind main T ?git tag '%(prompt Enter tag-name :)' %(commit)
bind main R ?git rebase -i %(commit)
bind main P ?git cherry-pick -xe %(commit)
bind main C none
bind main + ?git commit --fixup %(commit)
bind main ; ?git commit --fixup=reword:%(commit)
bind main & ?git commit --fixup=amend:%(commit)
bind main * ?git commit -v --squash %(commit)
bind main = ?git commit -v --reset-author -c %(commit)
bind main ! ?sh -c "git reset HEAD^ && git commit -pvc ORIG_HEAD"
# status/stage view
bind stage C !git commit -m "%(prompt Enter commit-log :)"
bind status C !git commit -m "%(prompt Enter commit-log :)"
bind stage V ?git commit -v
bind status V ?git commit -v
bind stage A ?git commit -v --amend
bind status A ?git commit -v --amend
# diff view
bind diff V ?git commit -v
bind diff A ?git commit -v --amend
bind diff + ?git commit --fixup %(commit)
bind diff ; ?git commit --fixup=reword:%(commit)
bind diff & ?git commit --fixup=amend:%(commit)
bind diff * ?git commit -v --squash %(commit)
bind diff = ?git commit -v --reset-author -c %(commit)
bind diff <up> move-up
bind diff <down> move-down
bind diff D :/^diff --git