From 08bb9b2f8bbdce74f4daffaae529bc5ee75c2aad Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Wed, 1 Feb 2023 14:03:35 -0500 Subject: [PATCH] Template email --- .chezmoi.toml.tmpl | 4 ++++ dot_gitconfig => dot_gitconfig.tmpl | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .chezmoi.toml.tmpl rename dot_gitconfig => dot_gitconfig.tmpl (83%) diff --git a/.chezmoi.toml.tmpl b/.chezmoi.toml.tmpl new file mode 100644 index 0000000..dbd7fae --- /dev/null +++ b/.chezmoi.toml.tmpl @@ -0,0 +1,4 @@ +{{- $email := promptStringOnce . "email" "Email address" -}} + +[data] + email = {{ $email | quote }} diff --git a/dot_gitconfig b/dot_gitconfig.tmpl similarity index 83% rename from dot_gitconfig rename to dot_gitconfig.tmpl index 8a30d18..3b72f4f 100644 --- a/dot_gitconfig +++ b/dot_gitconfig.tmpl @@ -1,6 +1,6 @@ [user] name = Andrew Scott - email = git@andyscott.me + email = {{ .email | quote }} signingKey = 7CD5A5977E4931C1 [init] defaultBranch = main