-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig.tmpl
124 lines (105 loc) · 3.44 KB
/
dot_gitconfig.tmpl
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
[user]
{{- if eq .chezmoi.hostname "CO-MBP-KC9KQV64V3" }}
email = [email protected]
name = Sven Grunewaldt
signingkey = key::ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBA+D0pXmFqtUvuGdiqVXvw4EvSqfANnjD9BIXx0SOHpf9l87p53ZmOqxrMJPhxPDq13cVntjIE+YbgbUyzTwN+Q=
{{- else }}
email = [email protected]
name = Sven Grunewaldt
signingkey = key::ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAVF4SCCpZtP7M3y2fVyw7y3VlehamxzSk5dI2CTuZ/FBfuClGKaKr3BV4BfxAC0RXsm78etHaChbQAUi91N0ds=
{{- end }}
[commit]
{{- if eq .chezmoi.hostname "CO-MBP-KC9KQV64V3" }}
gpgsign = true
{{- end }}
{{- if eq .chezmoi.hostname "yobuko" }}
gpgsign = true
{{- end }}
[alias]
recommit = "!f() { \
msg_file="$(git rev-parse --git-dir)/COMMIT_EDITMSG"; \
if [ -e "$msg_file" ]; then \
cat $msg_file | git commit --edit -F-; \
else \
git commit; \
fi; \
}; f"
a = add
amend = commit --amend --no-edit
br = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate
c = commit
co = checkout
f = fetch
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
ph = push -u origin head
pl = pull
pu = push
rc = recommit
root = rev-parse --show-toplevel
s = status
[github]
user = Strayer
[tag]
forceSignAnnotated = false
[gpg]
{{- if eq .chezmoi.hostname "yobuko" }}
format = ssh
{{- end }}
{{- if eq .chezmoi.hostname "CO-MBP-KC9KQV64V3" }}
format = ssh
[gpg "ssh"]
program = {{ env "HOME" }}/.bin/secretive-ssh-keygen
{{- end }}
[difftool]
prompt = false
[merge]
tool = p4merge
[diff]
tool = nvimdiff
[core]
excludesfile = ~/.gitignore
pager = delta
[mergetool]
prompt = false
[pull]
rebase = false
[init]
defaultBranch = main
[interactive]
diffFilter = delta --color-only --features=interactive
[delta]
features = decorations
[delta "interactive"]
keep-plus-minus-markers = false
[delta "decorations"]
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
[delta "tokyonight-day"]
minus-style = syntax "#ddcace"
minus-non-emph-style = syntax "#ddcace"
minus-emph-style = syntax "#d59a9d"
minus-empty-line-marker-style = syntax "#ddcace"
line-numbers-minus-style = "#c47981"
plus-style = syntax "#c8d6dc"
plus-non-emph-style = syntax "#c8d6dc"
plus-emph-style = syntax "#95bec7"
plus-empty-line-marker-style = syntax "#c8d6dc"
line-numbers-plus-style = "#4197a4"
line-numbers-zero-style = "#a8aecb"
[delta "tokyonight-storm"]
minus-style = syntax "#3f2d3d"
minus-non-emph-style = syntax "#3f2d3d"
minus-emph-style = syntax "#763842"
minus-empty-line-marker-style = syntax "#3f2d3d"
line-numbers-minus-style = "#914c54"
plus-style = syntax "#283b4d"
plus-non-emph-style = syntax "#283b4d"
plus-emph-style = syntax "#316172"
plus-empty-line-marker-style = syntax "#283b4d"
line-numbers-plus-style = "#449dab"
line-numbers-zero-style = "#3b4261"