-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdot_gitconfig.tmpl
More file actions
88 lines (70 loc) · 1.52 KB
/
Copy pathdot_gitconfig.tmpl
File metadata and controls
88 lines (70 loc) · 1.52 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[core]
editor = nvim
eol = lf
autocrlf = input
{{- $email := get . "email" -}}
{{- if eq $email "" -}}
{{- $email = env "CHEZMOI_EMAIL" -}}
{{- end -}}
{{- if eq $email "" -}}
{{- if eq .chezmoi.username "scetrov" -}}
{{- $email = "git@scetrov.live" -}}
{{- else if eq .chezmoi.username "rslater" -}}
{{- $email = "richard.slater@ensono.com" -}}
{{- else -}}
{{- $email = "github@richard-slater.co.uk" -}}
{{- end -}}
{{- end }}
[user]
email = {{ $email | quote }}
{{- if eq $email "git@scetrov.live" }}
name = Scetrov
signingkey = 84753C44C2B0595CDE23A57A5950DDF381361815
{{ else }}
name = Richard Slater
signingkey = BB08D26976020885
{{ end }}
[color]
ui = true
[diff]
tool = nvimdiff
[difftool]
prompt = false
[difftool "nvimdiff"]
cmd = "nvim -d \"$LOCAL\" \"$REMOTE\""
[merge]
tool = nvimdiff
[mergetool]
prompt = true
[mergetool "nvimdiff"]
cmd = "nvim -d \"$LOCAL\" \"$REMOTE\" \"$MERGED\" -c 'wincmd w' -c 'wincmd J'"
[branch]
autosetupmerge = true
[push]
default = simple
[pull]
rebase = true
[fetch]
prune = true
[rebase]
autoStash = true
[commit]
gpgsign = true
[tag]
gpgsign = true
{{ if eq .chezmoi.os "windows" -}}
[gpg]
program = C:\\Program Files\\GnuPG\\bin\\gpg.exe
{{ end }}
{{ if eq .chezmoi.os "linux" -}}
[gpg]
{{ if stat ("/usr/local/bin/gpg") -}}
program = /usr/local/bin/gpg
{{ else if stat ("$HOME/.local/bin/gpg" | expandenv) -}}
program = {{ "$HOME/.local/bin/gpg" | expandenv }}
{{ else -}}
program = gpg
{{ end -}}
{{ end }}
[init]
defaultBranch = main