From 5cd35b386dfb441076583bbdc2ee6c4068ec558b Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Mon, 4 Mar 2024 14:14:10 +0100 Subject: [PATCH] Up. --- home/.chezmoi.toml.tmpl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/home/.chezmoi.toml.tmpl b/home/.chezmoi.toml.tmpl index 5d31a0b..41936ad 100644 --- a/home/.chezmoi.toml.tmpl +++ b/home/.chezmoi.toml.tmpl @@ -1,14 +1,14 @@ -{{- $email := promptString "Git main email address " ""}} -{{- with promptInt "How many mbsync accounts would you generate " 0 }}{{ $mbsyncAccountNumber := . | int }} +{{- $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 }} +{{- 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 " }} +name = {{ promptString "MbSync account name " | quote }} +mail = {{ promptString "MbSync account mail " | quote }} +user = {{ promptString "MbSync account user " | quote }} host = {{ promptString "MbSync account host " | quote }} {{- end }} {{- end }}