config.tmpl

 1[init]
 2	defaultBranch = main
 3[alias]
 4	fp = 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	lazy = !lazygit
10	us = 'reset HEAD --'
11	sg = stage
12	ci = commit
13	co = checkout
14	wt = worktree
15	rb = rebase
16	br = branch
17	st = status
18	ps = push
19	pl = pull
20	bugs = bug bug
21	create-bug = bug bug new
22	push-bugs = !fish -c 'git-bug-push'
23	pull-bugs = !fish -c 'git-bug-pull'
24[user]
25	name = Amolith
26	email = amolith@secluded.site
27	{{- if eq .chezmoi.hostname "angmar" }}
28	signingkey = ~/.ssh/yk-stationary.pub
29	{{- else }}
30	signingkey = ~/.ssh/yk-mobile.pub
31	{{- end }}
32[commit]
33	gpgsign = true
34	verbose = true
35[tag]
36	gpgsign = true
37	sort = version:refname
38[gpg]
39	format = ssh
40[gpg "ssh"]
41	allowedSignersFile = /home/amolith/.ssh/allowed_signers
42[sendemail]
43	smtpserver = smtp.nixnet.email
44	smtpuser = amolith@secluded.site
45	smtpencryption = tls
46	smtpserverport = 587
47	annotate = yes
48[credential "smtp://smtp.nixnet.email:587"]
49	helper = 1password
50[core]
51	pager = delta
52	fsmonitor = true
53	untrackedCache = true
54	excludesFile = ~/.config/git/ignore
55	editor = vim
56[delta]
57	line-numbers = true
58	{{- if eq .theme_variant "dark" }}
59	syntax-theme = ansi
60	{{- end }}
61	{{- if eq .theme_variant "light" }}
62	syntax-theme = OneHalfLight
63	{{- end }}
64[interactive]
65	diffFilter = delta --color-only
66[pull]
67	rebase = true
68[push]
69	followTags = true
70	autoSetupRemote = true
71	default = current
72[branch]
73	autoSetupMerge = always
74	sort = -committerdate
75[filter "lfs"]
76	clean = git-lfs clean -- %f
77	smudge = git-lfs smudge -- %f
78	process = git-lfs filter-process
79	required = true
80[rerere]
81	enabled = true
82	autoupdate = true
83[help]
84	autocorrect = prompt
85[column]
86	ui = auto
87[diff]
88	algorithm = histogram
89	renames = true
90[rebase]
91	updateRefs = true
92	autoStash = true
93[merge]
94	conflictstyle = zdiff3
95	tool = vimdiff
96[color]
97	ui = true
98[fetch]
99	auto = true