summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornico wellpott <nico@magicbroccoli.de>2022-04-27 13:40:17 +0200
committernico wellpott <nico@magicbroccoli.de>2022-05-01 23:46:46 +0200
commit4dfd04e886f4cc8d808448cba12413531e345bc2 (patch)
treec4ae094a70424540eac3456f1bfbdad4bcf5d041
parentf0b0e4f240a9d547c305835ffe71de2b445608d3 (diff)
feat: add chezmoi init template
-rw-r--r--.chezmoi.yml.tmpl17
1 files changed, 17 insertions, 0 deletions
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"