-
Notifications
You must be signed in to change notification settings - Fork 12
/
gitconfig.global
181 lines (166 loc) · 6.65 KB
/
gitconfig.global
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# vim:ft=gitconfig:
[include]
; path = ~/etc/delta/neverland.theme
[user]
name = Magnus Woldrich
email = [email protected]
[push]
autosetupremote = true
[core]
; pager = delta
pager = delta --relative-paths --grep-separator-symbol='a'
; pager = diffr | less -R
; pager = diff-highlight
hooksPath = ~/.hooks/
[color]
branch = auto
diff = 1
grep = auto
pager = 0
showbranch = auto
status = auto
ui = auto
[status]
showuntrackedfiles = all
[merge "composer_json"]
name = composer JSON file merge driver
driver = composer-git-merge-driver %O %A %B %L %P
recursive = binary
[color "status"]
added = 166 bold
branch = 100
changed = 178 bold
header = 086
nobranch = 197
untracked = 240
[color "branch"]
current = 172
local = 85 bold
remote = 039
plain = 240 reverse
[color "diff"]
old = 124
new = 34 bold
plain = 137
meta = 85
frag = 86
func = 87
commit = 4
whitespace = 160 bold
[color "diff-highlight"]
oldNormal = 160
oldHighlight = 124
newNormal = green
newHighlight = 34
[diff]
colorMoved = default
pager = diff-highlight
tool = kitty
guitool = kitty.gui
[difftool]
prompt = false
trustExitCode = true
[difftool "kitty"]
cmd = kitten diff $LOCAL $REMOTE
[difftool "kitty.gui"]
cmd = kitten diff $LOCAL $REMOTE
[interactive]
diffFilter = delta --color-only --line-number
; difffilter = diffr
[delta]
navigate = true # use n and N to move between diff sections
light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
line-numbers = true
features = decorations
side-by-side = false
# syntax-theme = "Monokai Extended"
# features = unobtrusive-line-numbers decorations
whitespace-error-style = 22 reverse
# line-numbers-left-format = ""
# line-numbers-right-format = "│ "
# minus-style = "#ff0000"
# plus-style = black "#005f00"
[delta "unobtrusive-line-numbers"]
# line-numbers = true
# line-numbers-minus-style = "#444444"
# line-numbers-zero-style = "#444444"
# line-numbers-plus-style = "#444444"
# line-numbers-left-format = "{nm:>4}┊"
# line-numbers-right-format = "{np:>4}│"
# line-numbers-left-style = blue
# line-numbers-right-style = blue
[delta "interactive"]
keep-plus-minus-markers = false
[delta "decorations"]
# commit-decoration-style = bold yellow box ul
# file-style = bold yellow ul
# file-decoration-style = none
# hunk-header-decoration-style = yellow box
commit-decoration-style = blue ol
commit-style = raw
file-style = omit
hunk-header-decoration-style = blue box
hunk-header-file-style = red
hunk-header-line-number-style = "#067a00"
hunk-header-style = file line-number syntax
[merge]
conflictstyle = zdiff3
autostash = true
[diff]
colorMoved = default
relative = true
[man]
# viewer = motherfuckingvimpager
[receive]
denyCurrentBranch = ignore
[core]
excludesfile = ~/etc/gitignore.global
[gui]
fontui = -family MonteCarlo -size -12 -weight normal -slant roman -underline 0 -overstrike 0
fontdiff = -family MonteCarlo -size -12 -weight normal -slant roman -underline 0 -overstrike 0
[alias]
last = "!git log -10 HEAD --abbrev-commit --date=short --pretty=format:'%h%x00%cd%x00%s%x00%an%x00%d' $@ | gawk -F '\\0' '{ printf \"\\033[31m%s\\033[m \\033[32m%s\\033[m %-.40s \\033[38;5;137m%s\\033[m\\033[34m%s\\n\", $1, $2, gensub(/(.{49}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5 }';"
lastt = "!git log -76 HEAD --abbrev-commit --date=short --pretty=format:'%h%x00%cd%x00%s%x00%an%x00%d' $@ | gawk -F '\\0' '{ printf \"\\033[31m%s\\033[m \\033[32m%s\\033[m %-.40s \\033[38;5;137m%s\\033[m\\033[34m%s\\n\", $1, $2, gensub(/(.{49}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5 }';"
lasttt = "!git log -176 HEAD --abbrev-commit --date=short --pretty=format:'%h%x00%cd%x00%s%x00%an%x00%d' $@ | gawk -F '\\0' '{ printf \"\\033[31m%s\\033[m \\033[32m%s\\033[m %-.40s \\033[38;5;137m%s\\033[m\\033[34m%s\\n\", $1, $2, gensub(/(.{49}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5 }';"
co = checkout
ci = commit
st = status
pu = push
pl = pull
undo = checkout --
log1 = log --
whatthefuckdidido = diff HEAD
sum = git-summary
effort = git-summary
styoyo = git-awesome-status
l = "!f () { git log --abbrev-commit --date=short --pretty=format:'%h%x00%cd%x00%s%x00%an%x00%d' $@ | gawk -F '\\0' '{ printf \"\\033[31m%s\\033[0m \\033[32m%s\\033[0m %-40s \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, gensub(/(.{49}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5 }';}; f"
ll = "!f () { git log --abbrev-commit --date=short --pretty=format:'%h%x00%cd%x00%s%x00%an%x00%d' $@ | gawk -F '\\0' '{ printf \"\\033[31m%s\\033[0m \\033[32m%s\\033[0m %-50s \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, gensub(/(.{49}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5 }';}; f"
lll = "!f () { git log --abbrev-commit --date=short --pretty=format:'%h%x00%cd%x00%s%x00%an%x00%d' $@ | gawk -F '\\0' '{ printf \"\\033[31m%s\\033[0m \\033[32m%s\\033[0m %-80s \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, gensub(/(.{79}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5 }'; }; f"
lg40 = "!f () { git log --graph --color=always --abbrev-commit --date=relative --pretty=format:'%x00%h%x00%s%x00%cd%x00%an%x00%d' $@ | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m %-40s \\033[32m%14s\\033[0m \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, gensub(/(.{49}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5, $6 }'; }; f"
lg50 = "!f () { git log --graph --color=always --abbrev-commit --date=relative --pretty=format:'%x00%h%x00%s%x00%cd%x00%an%x00%d' $@ | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m %-50s \\033[32m%14s\\033[0m \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, gensub(/(.{49}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5, $6 }'; }; f"
lg80 = "!f () { git log --graph --color=always --abbrev-commit --date=relative --pretty=format:'%x00%h%x00%s%x00%cd%x00%an%x00%d' $@ | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m %-80s \\033[32m%14s\\033[0m \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, gensub(/(.{79}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5, $6 }'; }; f"
root = rev-parse --show-toplevel
[github]
user = trapd00r
[init]
defaultBranch = master
[guitool "Rebase onto..."]
cmd = git rebase $REVISION
revprompt = yes
[guitool "Rebase/Continue"]
cmd = git rebase --continue
[guitool "Rebase/Skip"]
cmd = git rebase --skip
[guitool "Rebase/Abort"]
cmd = git rebase --abort
[guitool "Pull with Rebase"]
cmd = git pull --rebase
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[rebase]
autoStash = true
[pull]
rebase = true