From ac364679ca585ee703a374bad545136f8d20468a Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Mon, 4 Mar 2024 16:10:50 +0100 Subject: [PATCH] Up. --- home/.chezmoi.toml.tmpl | 4 ---- home/dot_mbsyncrc.tmpl | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/home/.chezmoi.toml.tmpl b/home/.chezmoi.toml.tmpl index 5116b43..fcf24be 100644 --- a/home/.chezmoi.toml.tmpl +++ b/home/.chezmoi.toml.tmpl @@ -4,9 +4,6 @@ email = {{ promptString "Git main email address " "" | quote }} {{- with promptInt "How many mbsync accounts would you generate " 0 -}}{{- $count := . | int }} {{- if gt $count 0 -}} -[[data.mbsync]] -activate = true - {{- range $i, $e := until $count }} [[data.mbsync]] name = {{ promptString "MbSync account name " | quote }} @@ -18,7 +15,6 @@ host = {{ promptString "MbSync account host " | quote }} {{ else }} [[data.mbsync]] -activate = false {{- end }} {{- end }} diff --git a/home/dot_mbsyncrc.tmpl b/home/dot_mbsyncrc.tmpl index 7bb7f69..a05b479 100644 --- a/home/dot_mbsyncrc.tmpl +++ b/home/dot_mbsyncrc.tmpl @@ -24,8 +24,8 @@ BufferLimit 100M # # ########################## -{{ if .mbsync.activate }} -{{ range $value := .mbsync[1:] }} +{{ if .mbsync }} +{{ range $value := .mbsync }} # {{ $value.name }} #-------------------------