1
0
chezmoi/home/.chezmoi.toml.tmpl

20 lines
785 B
Cheetah
Raw Normal View History

2024-03-04 12:53:17 +00:00
{{- $email := promptString "Git main email address " ""}}
{{- $mbsyncAccountNumber := promptInt "How many mbsync accounts would you generate " 0 }}
2024-03-04 12:30:21 +00:00
{{- $mbsyncAccountNumber = $mbsyncAccountNumber | int -}}
[data]
email = {{ $email | quote }}
{{- if gt $mbsyncAccountNumber 0 -}}
2024-03-04 12:43:43 +00:00
{{- range $i, $e := until $mbsyncAccountNumber -}}
{{ $mbsyncAccountName := promptString "MbSync account name " }}
{{ $mbsyncAccountMail := promptString "MbSync account mail " }}
{{ $mbsyncAccountUser := promptString "MbSync account user " }}
{{ $mbsyncAccountHost := promptString "MbSync account host " }}
2024-03-04 12:30:21 +00:00
[[data.mbsync]]
2024-03-04 12:40:01 +00:00
name = {{ $mbsyncAccountName | quote }}
mail = {{ $mbsyncAccountMail | quote }}
user = {{ $mbsyncAccountUser | quote }}
host = {{ $mbsyncAccountHost | quote }}
2024-03-04 12:55:46 +00:00
{{- end }}
{{- end }}