-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.chezmoi.toml.tmpl
29 lines (24 loc) · 938 Bytes
/
.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
# https://www.chezmoi.io/user-guide/setup/#re-create-your-config-file
# https://www.chezmoi.io/reference/templates/init-functions/promptStringOnce/
# https://pkg.go.dev/text/template
# http://masterminds.github.io/sprig/
#
#
# Test with `chezmoi execute-template --init < .chezmoi.toml.tmpl`
# Re-init with: `chezmoi init`
{{ $isHome := promptBoolOnce . "isHome" "Is this computer at home" -}}
{{ $fqdn := promptStringOnce . "fqdn" "Fully qualified name of host" -}}
mode = "symlink"
[data]
isHome = {{ $isHome }}
fqdn = "{{ $fqdn }}"
hostname = "{{ $fqdn | splitList "." | first }}"
{{- if $isHome }}
email = "[email protected]"
{{- else }}
email = "[email protected]"
{{- end }}
# TODO: Doesn't work yet
[merge]
command = "/Applications/p4merge.app/Contents/MacOS/p4merge"
args = ["{{ "{{" }} .Source {{ "}}" }}", "{{ "{{" }} .Destination {{ "}}" }}", "{{ "{{" }} .Source {{ "}}" }}", "{{ "{{" }} .Target {{ "}}" }}"]