From 8b52e6666e40b7061bbb046e2f5b8ee3db2a0309 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Fri, 31 Mar 2023 03:41:32 +0000 Subject: [PATCH] Update file config.tmpl --- home/dot_config/git/config.tmpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/home/dot_config/git/config.tmpl b/home/dot_config/git/config.tmpl index 2dea3fdf..041d697f 100644 --- a/home/dot_config/git/config.tmpl +++ b/home/dot_config/git/config.tmpl @@ -128,7 +128,6 @@ diffFilter = delta --color-only [merge] conflictstyle = diff3 - ff = only renamelimit = 0 summary = true stat = true @@ -155,7 +154,7 @@ smtpuser = {{ default "" .user.gmail.username }} smtpencryption = tls smtpserverport = 587 - smtpPass = {{ default "" (env "GMAIL_PASSWORD") }} + smtpPass = {{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "GMAIL_PASSWORD")) }}{{ includeTemplate "secrets/GMAIL_PASSWORD" | decrypt }}{{ else }}{{ default "" (env "GMAIL_PASSWORD") }}{{ end }} [status] showUntrackedFiles = all submoduleSummary = true