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