diff --git a/home/.chezmoi.toml.tmpl b/home/.chezmoi.toml.tmpl index a88dc06..9eb1408 100644 --- a/home/.chezmoi.toml.tmpl +++ b/home/.chezmoi.toml.tmpl @@ -1,8 +1,7 @@ [data] email = {{ promptString "Git main email address " "" | quote }} {{- with promptInt "How many mbsync accounts would you generate " 0 -}}{{- $count := . | int -}} -{{ $mbsync := $count }} -mbsync = {{ $mbsync }} +mbsync = {{ $count }} {{- if gt $count 0 -}} {{- range $i, $e := until $count }} [[data.mbsync]]