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