From 79c4a47169e2eadbbb5f1da62757151e1d2e6d65 Mon Sep 17 00:00:00 2001 From: Vasili Svirydau Date: Wed, 6 May 2026 09:52:49 -0700 Subject: [PATCH] chore: config template --- .chezmoi.toml.tmpl | 6 ++++++ dot_gitconfig.tmpl | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .chezmoi.toml.tmpl diff --git a/.chezmoi.toml.tmpl b/.chezmoi.toml.tmpl new file mode 100644 index 0000000..cdc5a95 --- /dev/null +++ b/.chezmoi.toml.tmpl @@ -0,0 +1,6 @@ +{{- $email := promptStringOnce . "email" "Email address" -}} +{{- $fullName := promptStringOnce . "fullName" "Full Name" -}} + +[data] + email = {{ $email | quote }} + fullName = {{ $fullName | quote }} diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index 9f37792..398d7e3 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -1,5 +1,5 @@ [user] - name = {{ .name | quote }} + name = {{ .fullName | quote }} email = {{ .email | quote }} [push] autoSetupRemote = true