-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig.tmpl
44 lines (43 loc) · 1.13 KB
/
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
[init]
defaultBranch = main
[color]
ui = auto
[core]
editor = {{ output "which" "nvim" | trim }}
quotepath = false
pager = delta
[interactive]
diffFilter = delta --color-only --features=interactive
[delta]
features = decorations
side-by-side = true
[delta "interactive"]
keep-plus-minus-markers = false
[delta "decorations"]
commit-decoration-style = blue ol
commit-style = raw
file-style = omit
hunk-header-decoration-style = blue box
hunk-header-file-style = red
hunk-header-line-number-style = "#067a00"
hunk-header-style = file line-number syntax
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
[user]
name = {{ .git.name | quote }}
email = {{ .git.email | quote }}
{{- if hasKey .git "gpg_signingkey" }}
signingkey = {{ .git.gpg_signingkey }}
[commit]
gpgsign = true
{{- end }}
{{- if and (hasKey .git "gpg_signingkey") (lookPath "gpg") }}
[gpg]
program = {{ output "which" "gpg" | trim }}
{{- end }}
{{- if (and (eq .chezmoi.os "linux") (.chezmoi.kernel.osrelease | lower | contains "microsoft")) }}
[credential]
helper = /mnt/c/Program\\ Files/Git/mingw64/bin/git-credential-manager.exe
{{- end }}