-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tigrc
More file actions
44 lines (40 loc) · 1.72 KB
/
.tigrc
File metadata and controls
44 lines (40 loc) · 1.72 KB
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
#https://github.com/jonhiggs/dotfiles/blob/c4b1295db6640603e2dc4d5471f21bf2c529404e/tig/.tigrc
set line-graphics = utf-8
set show-changes = yes #
bind status C none
bind status <Ctrl-G> !git commit -v
bind status P !git push origin
bind status R !git rebase -i HEAD~10
color default white black
color author default default normal
color cursor default 242 bold
color date yellow default normal
color diff-chunk white 052 normal
color graph-commit green default
color header white 025 bold
color overflow green red
color stat-none red default
color stat-staged green default
color stat-unstaged red default
color stat-untracked red default
color title-blur white 025 bold
color title-focus white 236
set wrap-lines = yes
# VIM STUFF
bind generic F view-grep # Rebind the grep view
bind generic g none # Clear old 'g' binding to allow for 'gg' etc.
bind generic gg move-first-line
bind generic G move-last-line
bind main G move-last-line
bind generic B @sh -c "open 'https://'$(git remote -v | grep -Eo 'github.com[:/][^.]+' | head -1 | tr : /)'/commit/%(commit)'"
set mouse = yes
set mouse-scroll = 3
#https://github.com/yusekiya/dotfiles/blob/40bbd64acbb8d7abe384268b0ccb0cb8d7049201/.tigrc#L19-L24
bind main P ?git cherry-pick %(commit)
bind main B ?git checkout -b "%(prompt Enter new branch name: )" %(commit)
bind main b ?git checkout -b "%(prompt Enter new branch name: )" %(commit)
bind main v ?git checkout %(commit)
bind main ! ?git revert %(commit)
bind main M ?git merge %(branch)
bind refs v ?git checkout %(branch)
bind generic Y @sh -c "printf '%s' %(commit) | pbcopy"