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]