1
0
chezmoi/home/.chezmoi.toml.tmpl
2024-03-04 15:59:16 +01:00

21 lines
593 B
Cheetah

chezmoi:template:missing-key=zero
[data]
email = {{ promptString "Git main email address " "" | quote }}
{{- with promptInt "How many mbsync accounts would you generate " -}}{{- $count := . | int }}
{{- if gt $count 0 -}}
{{- range $i, $e := until $count }}
[[data.mbsync]]
active = true
name = {{ promptString "MbSync account name " | quote }}
mail = {{ promptString "MbSync account mail " | quote }}
user = {{ promptString "MbSync account user " | quote }}
host = {{ promptString "MbSync account host " | quote }}
{{- end }}
{{- end }}
{{ else }}
[[data.mbsync]]
active = false
{{- end }}