1
0
chezmoi/home/.chezmoi.toml.tmpl
2024-03-04 14:11:35 +01:00

16 lines
544 B
Cheetah

{{- $email := promptString "Git main email address " ""}}
{{- with promptInt "How many mbsync accounts would you generate " 0 }}{{ $mbsyncAccountNumber := . | int }}
[data]
email = {{ $email | quote }}
{{- if gt $mbsyncAccountNumber 0 -}}
{{- range $i, $e := until $mbsyncAccountNumber -}}
[[data.mbsync]]
name = {{ promptString "MbSync account name " }}
mail = {{ promptString "MbSync account mail " }}
user = {{ promptString "MbSync account user " }}
host = {{ promptString "MbSync account host " | quote }}
{{- end }}
{{- end }}
{{- end }}