-
Notifications
You must be signed in to change notification settings - Fork 3
/
.chezmoi.toml.tmpl
41 lines (41 loc) · 1.23 KB
/
.chezmoi.toml.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
{{- $codespaces := env "CODESPACES" | not | not -}}
{{- $powershellPath := lookPath "powershell" -}}
{{- $pwshPath := lookPath "pwsh" -}}
follow = true # follow symlinks, so we can symlink ~\Documents to ~\OneDrive\Documents
[data]
name = "Gilbert Sanchez"
codespaces = {{ $codespaces }}
{{- if $codespaces }}{{/* Codespaces dotfiles setup is non-interactive, so set an email address */}}
email = "[email protected]"
{{- else }}{{/* Interactive setup, so prompt for an email address */}}
email = {{ promptString "email" | quote }}
{{- end }}
{{ if $powershellPath }}
powershellPath = {{ $powershellPath | quote }}
hasPowerShell = true
{{ end }}
{{ if $pwshPath }}
pwshPath = {{ $pwshPath | quote }}
hasPwsh = true
{{ end }}
{{ if $pwshPath }}
shellexe = {{ $pwshPath | quote }}
{{ else }}
shellexe = {{ $powershellPath | quote }}
{{ end }}
git_oss = {{ promptString "oss git dir" | quote }}
git_work = {{ promptString "work git dir" | quote }}
[merge]
command = "code"
args = "--wait $MERGED"
[cd]
command = "pwsh"
args = ["-NoProfile", "-NoLogo"]
[diff]
pager = "delta"
[interpreters.ps1]
command = "pwsh"
args = ["-NoLogo", "-NoProfile"]
[edit]
command = "code"
args = ["--wait"]