-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig.tmpl
50 lines (45 loc) · 1011 Bytes
/
dot_gitconfig.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{{- $data := (include ".precomputed_data.json" | fromJson) -}}
###
### General Git Configuration
###
[user]
name = Hunter T.
email = [email protected]
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGiffRcM4tkooHgePhvOjhOZe5vgkFCcBfaKBlIqpe08
[gpg]
format = ssh
[gpg "ssh"]
{{- if eq .chezmoi.os "linux" }}
program = "/opt/1Password/op-ssh-sign"
{{- else if eq .chezmoi.os "darwin" }}
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
{{- end }}
[commit]
gpgsign = true
[init]
defaultBranch = main
{{ if $data.isDeltaInstalled -}}
###
### Git Delta Configurations
###
[core]
pager = delta
editor = nvim
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
dark = true
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
{{- end }}
###
### Other Non-specific Configurations
###
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true