From 2e4fe1af679511c0050b749bf98a67f13962af40 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Mon, 4 Mar 2024 15:20:02 +0100 Subject: [PATCH] Up. --- home/.chezmoi.toml.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/.chezmoi.toml.tmpl b/home/.chezmoi.toml.tmpl index f0f59c8..f8de1f8 100644 --- a/home/.chezmoi.toml.tmpl +++ b/home/.chezmoi.toml.tmpl @@ -1,8 +1,9 @@ [data] email = {{ promptString "Git main email address " "" | quote }} {{- with promptInt "How many mbsync accounts would you generate " 0 -}}{{- $count := . | int -}} +{{ $mbsync := ternary true false $count }} +mbsync = {{ $mbsync }} {{- if gt $count 0 -}} -mbsync = {{ ternary true false $count }} {{- range $i, $e := until $count }} [[data.mbsync]] name = {{ promptString "MbSync account name " | quote }}