-
Notifications
You must be signed in to change notification settings - Fork 0
/
.chezmoi.yaml.tmpl
38 lines (30 loc) · 1.04 KB
/
.chezmoi.yaml.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
{{/* The following comment line *will* be inserted in the final file */ -}}
{{ "# Do *not* edit this file as it will be overwritten on next `chezmoi init` call." }}
{{ printf "# Edit `%s/.chezmoi.yaml.tmpl` instead" .chezmoi.sourceDir -}}
{{ $gitemail := promptStringOnce . "gitemail" "Git e-mail" -}}
{{- $usageChoices := list "home" "work" -}}
{{- $usage := promptChoiceOnce . "usage" "Usage" $usageChoices -}}
{{ $keepassxcpath := promptStringOnce . "keepassxcpath" "KeePassXC database path" -}}
{{ $wakatimeapikey := get . "wakatimeapikey" -}}
{{ if and (not $wakatimeapikey) (get . "keepassxcpath") -}}
{{ $wakatimeapikey := keepassxcAttribute "WakaTime" "API key" -}}
{{ end }}
{{ if eq .chezmoi.os "windows" -}}
# override default cmd.exe on windows
cd:
command: pwsh
{{- end }}
data:
gitemail: {{ $gitemail }}
keepassxcpath: {{ $keepassxcpath }}
usage: {{ $usage }}
wakatimeapikey: {{ $wakatimeapikey }}
diff:
pager: delta
keepassxc:
{{ if eq $usage "home" }}
args:
- --yubikey
- "2"
{{ end }}
database: {{ $keepassxcpath }}