config.tmpl

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