From 4dfd04e886f4cc8d808448cba12413531e345bc2 Mon Sep 17 00:00:00 2001 From: nico wellpott Date: Wed, 27 Apr 2022 13:40:17 +0200 Subject: feat: add chezmoi init template --- .chezmoi.yml.tmpl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .chezmoi.yml.tmpl diff --git a/.chezmoi.yml.tmpl b/.chezmoi.yml.tmpl new file mode 100644 index 0000000..a72311c --- /dev/null +++ b/.chezmoi.yml.tmpl @@ -0,0 +1,17 @@ +{{- $email := get . "email" -}} +{{- if not $email -}} +{{- $email = promptString "email" -}} +{{- end -}} + +{{- $work := get . "work" -}} +{{- if not $work -}} +{{- $work = promptBool "work computer" -}} +{{- end -}} + +data: + email: {{ $email | quote }} + work: {{ $work }} +edit: + command: code + args: + - "--wait" -- cgit v1.2.3-54-g00ecf