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	editor = vim
41[delta]
42	line-numbers = true
43	{{- if eq .theme_variant "dark" }}
44	syntax-theme = ansi
45	{{- end }}
46	{{- if eq .theme_variant "light" }}
47	syntax-theme = OneHalfLight
48	{{- end }}
49[interactive]
50	diffFilter = delta --color-only
51[pull]
52	rebase = true
53[push]
54	followTags = true
55	autoSetupRemote = true
56	default = current
57[branch]
58	autoSetupMerge = always
59	sort = -committerdate
60[filter "lfs"]
61	clean = git-lfs clean -- %f
62	smudge = git-lfs smudge -- %f
63	process = git-lfs filter-process
64	required = true
65[rerere]
66	enabled = true
67	autoupdate = true
68[help]
69	autocorrect = prompt
70[column]
71	ui = auto
72[diff]
73	algorithm = histogram
74	renames = true
75[rebase]
76	updateRefs = true
77	autoStash = true
78[merge]
79	conflictstyle = zdiff3
80	tool = vimdiff
81[color]
82	ui = true
83[fetch]
84	auto = true