-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig.tmpl
62 lines (52 loc) · 1.69 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[user]
name = Joel Gerber
{{- if eq .location "work" }}
email = {{ (onepasswordItemFields "px6i642ammj2c626mv2lgoz4lm").email.value }}
signingkey = {{ (onepasswordItemFields "7mqw6bj6yszkbgqumabctc7wmq").id.value }}
{{- else if eq .location "home" }}
email = {{ (onepasswordItemFields "e6k5uztqr5ednktpnz2wuf3dyu").email.value }}
signingkey = {{ (onepasswordItemFields "v42o4tpedwhxnv5lm7pugsmunu").id.value }}
{{- end }}
[core]
autocrlf = input
editor = code --wait
excludesfile = {{ .chezmoi.homeDir | replace "\\" "/" }}/.gitignore
[credential]
{{- if eq .chezmoi.os "linux" }}
{{- if contains "WSL" .chezmoi.kernel.osrelease }}
helper = /mnt/c/Users/{{ .chezmoi.username }}/AppData/Local/Programs/Git/mingw64/libexec/git-core/git-credential-manager-core.exe
{{- else }}
helper = /usr/local/share/gcm-core/git-credential-manager-core
credentialStore = gpg
{{- end }}
{{- else if eq .chezmoi.os "darwin" }}
manager = osxkeychain
{{- else if eq .chezmoi.os "windows" }}
helper = {{- .chezmoi.homeDir | replace "\\" "/" }}/AppData/Local/Programs/Git/mingw64/libexec/git-core/git-credential-manager-core.exe
{{ end }}
[gpg]
{{- if eq .chezmoi.os "darwin" }}
{{- if eq .location "work" }}
program = /opt/homebrew/bin/gpg
{{- else }}
program = /usr/local/bin/gpg
{{- end }}
{{- else if eq .chezmoi.os "windows" }}
program = {{ .chezmoi.homeDir | replace "\\" "/" }}/AppData/Local/Programs/GnuPG/bin/gpg.exe
{{- end }}
[http]
{{- if eq .chezmoi.os "windows" }}
sslbackend = schannel
{{- end }}
[init]
defaultbranch = main
[commit]
gpgsign = true
[diff]
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[merge]
tool = vscode
[mergetool "vscode"]
cmd = code --wait $MERGED