config.tmpl

 1[init]
 2	defaultBranch = main
 3[alias]
 4	force-push = push --force-with-lease
 5	dl = -c diff.external=difft log -p --ext-diff
 6	ds = -c diff.external=difft show --ext-diff
 7	df = -c diff.external=difft diff
 8	patch = push rad HEAD:refs/patches
 9[user]
10	name = Amolith
11	email = amolith@secluded.site
12	{{- if eq .chezmoi.hostname "angmar" }}
13	signingkey = ~/.ssh/yk-stationary.pub
14	{{- else }}
15	signingkey = ~/.ssh/yk-mobile.pub
16	{{- end }}
17[commit]
18	gpgsign = true
19	verbose = true
20[tag]
21	gpgsign = true
22	sort = version:refname
23[gpg]
24	format = ssh
25[gpg "ssh"]
26	allowedSignersFile = /home/amolith/.ssh/allowed_signers
27[sendemail]
28	smtpserver = smtp.nixnet.email
29	smtpuser = amolith@secluded.site
30	smtpencryption = tls
31	smtpserverport = 587
32	annotate = yes
33[credential "smtp://smtp.nixnet.email:587"]
34	helper = 1password
35[core]
36	pager = delta
37	fsmonitor = true
38	untrackedCache = true
39	excludesFile = ~/.config/git/ignore
40[delta]
41	line-numbers = true
42	{{- if eq .theme_variant "dark" }}
43	syntax-theme = ansi
44	{{- end }}
45	{{- if eq .theme_variant "light" }}
46	syntax-theme = OneHalfLight
47	{{- end }}
48[interactive]
49	diffFilter = delta --color-only
50[pull]
51	rebase = true
52[push]
53	followTags = true
54	autoSetupRemote = true
55	default = current
56[branch]
57	autoSetupMerge = always
58	sort = -committerdate
59[filter "lfs"]
60	clean = git-lfs clean -- %f
61	smudge = git-lfs smudge -- %f
62	process = git-lfs filter-process
63	required = true
64[rerere]
65	enabled = true
66	autoupdate = true
67[help]
68	autocorrect = prompt
69[column]
70	ui = auto
71[diff]
72	algorithm = histogram
73	renames = true
74[rebase]
75	updateRefs = true
76	autoStash = true
77[merge]
78	conflictstyle = zdiff3