Up.
This commit is contained in:
parent
f2370447a9
commit
104bbed8c0
20
home/.chezmoi.toml.tmpl
Normal file
20
home/.chezmoi.toml.tmpl
Normal file
@ -0,0 +1,20 @@
|
||||
{{- $email := promptStringOnce . "email" "Email address " }}
|
||||
{{- $mbsyncAccountNumber := promptIntOnce . "mbsyncAccountNumber" "How many mbsync accounts would you generate " }}
|
||||
|
||||
{{- $mbsyncAccountNumber = $mbsyncAccountNumber | int -}}
|
||||
|
||||
|
||||
[data]
|
||||
email = {{ $email | quote }}
|
||||
mbsyncAccountNumber = {{ $mbsyncAccountNumber }}
|
||||
|
||||
{{- if gt $mbsyncAccountNumber 0 -}}
|
||||
{{- range $i, $e := until $mbsyncAccountNumber -}}
|
||||
{{ $mbsyncAccountName := promptString "MbSync account name " }}
|
||||
[[data.mbsync]]
|
||||
name = {{ $mbsyncAccountName | quote }}
|
||||
email = "accountEmail"
|
||||
username = "accountUserName"
|
||||
server = "accountServer"
|
||||
{{- end -}}
|
||||
{{- end -}}
|
@ -1,19 +0,0 @@
|
||||
{{- $email := promptStringOnce . "email" "Email address " }}
|
||||
{{- $mbsyncAccountNumber := promptIntOnce . "mbsyncAccountNumber" "How many mbsync accounts would you generate " }}
|
||||
|
||||
{{- $mbsyncAccountNumber = $mbsyncAccountNumber | int -}}
|
||||
|
||||
|
||||
data:
|
||||
email: {{ $email | quote }}
|
||||
mbsyncAccountNumber: {{ $mbsyncAccountNumber }}
|
||||
{{- if gt $mbsyncAccountNumber 0 -}}
|
||||
mbsync:
|
||||
{{- range $i, $e := until $mbsyncAccountNumber -}}
|
||||
{{ $mbsyncAccountName := promptString "MbSync account name " }}
|
||||
- name: {{ $mbsyncAccountName }}
|
||||
email: "accountEmail"
|
||||
username: "accountUserName"
|
||||
server: "accountServer"
|
||||
{{- end -}}
|
||||
{{- end -}}
|
Loading…
Reference in New Issue
Block a user