-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_gitconfig.tmpl
49 lines (41 loc) · 1.66 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
{{- $autoCrLf := "input" -}}
{{- $credHelper := "store" -}}
{{- if eq .chezmoi.os "windows" }}
{{- $autoCrLf = "true" -}}
{{- $credHelper = "manager-core" -}}
{{- else -}}
{{- if and (index .chezmoi.kernel "osrelease") (.chezmoi.kernel.osrelease | lower | contains "microsoft") }}
{{- $credHelper = output "command" "-v" "git-credential-manager.exe" | trim -}}
{{- end -}}
{{- end -}}
[core]
pager = delta
autocrlf = {{ $autoCrLf }}
{{- if eq .chezmoi.os "windows" }}
sshCommand = C:/Windows/System32/OpenSSH/ssh.exe
quotepath = false
commitGraph = true
longpaths = true
[credential "helperselector"]
selected = manager-core
{{- end }}
[credential]
helper = {{ $credHelper }}
[delta]
line-numbers = true
side-by-side = true
syntax-theme = Dracula
[alias]
rank = "shortlog -s -n --no-merges"
[includeIf "gitdir:{{ .chezmoi.homeDir }}/Repos/Work/"]
path = {{ .chezmoi.homeDir }}/.gitconfig-work
[includeIf "gitdir:{{ .chezmoi.homeDir }}/Repos/Work/{{ keepassxcAttribute "_frx" "company" }}"]
path = {{ .chezmoi.homeDir }}/.gitconfig-frx
[includeIf "gitdir:{{ .chezmoi.homeDir }}/Repos/_{{ keepassxcAttribute "Google prv" "name" }}/"]
path = {{ .chezmoi.homeDir }}/.gitconfig-prv
[url "caf-ado:v3/{{ keepassxcAttribute "_caf" "ado-org" }}"]
insteadOf = [email protected]:v3/{{ keepassxcAttribute "_caf" "ado-org" }}
[url "frx-ado:v3/{{ keepassxcAttribute "_frx" "ado-org" }}"]
insteadOf = [email protected]:v3/{{ keepassxcAttribute "_frx" "ado-org" }}
[url "cg-ado:v3/{{ keepassxcAttribute "_base email" "ado-org" }}"]
insteadOf = [email protected]:v3/{{ keepassxcAttribute "_base email" "ado-org" }}