From 165d14d942ac7dddc63c5a412d54776f57cac847 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Sun, 10 Mar 2024 20:14:01 +0100 Subject: [PATCH] Up. --- home/.chezmoi.toml.tmpl | 8 ++++++-- home/dot_gitconfig.tmpl | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/home/.chezmoi.toml.tmpl b/home/.chezmoi.toml.tmpl index 53ad242..c7ebaf8 100644 --- a/home/.chezmoi.toml.tmpl +++ b/home/.chezmoi.toml.tmpl @@ -1,6 +1,10 @@ +email = {{ email := promptString "What is your main git email address " "" }} +signinkey = {{ signinkey := promptString "What is your main git email address " "" }} +latex = {{ latex := promptBool "Do i install latex files " false }} [git] autoCommit = true autoPush = true [data] -email = {{ promptString "What is your main git email address " "" | quote }} -latex = {{ promptBool "Do i install latex files " false }} +email = {{ $email | quote }} +signinkey = {{ $signinkey | quote }} +latex = {{ $latex }} diff --git a/home/dot_gitconfig.tmpl b/home/dot_gitconfig.tmpl index 725cc38..6b6f812 100644 --- a/home/dot_gitconfig.tmpl +++ b/home/dot_gitconfig.tmpl @@ -1,7 +1,9 @@ [user] name = Jeff LANCE email = "{{ .email }}" - signingkey = "{{ .signingkey }}" +{{ if not empty .signinkey }} + signinkey = "{{ .signinkey }}" +{{ end }} [core] excludesfile = /home/jeff/.gitignore.global [credential]