From fbcd31669412c36743823bb2a54d51e7ef9412f9 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Wed, 18 Nov 2020 21:37:40 -0600 Subject: [PATCH] wtf --- .chezmoi.toml.tmpl | 4 +++- dot_gitconfig.tmpl | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.chezmoi.toml.tmpl b/.chezmoi.toml.tmpl index 3f9ce01..17588f7 100644 --- a/.chezmoi.toml.tmpl +++ b/.chezmoi.toml.tmpl @@ -1,7 +1,9 @@ {{- $graphical := promptString "graphical" -}} {{- $root := promptString "root" -}} +{{- $pass := promptString "pass" -}} [data] - email = "iptq@protonmail.com" + email = "mail@mzhang.io" graphical = {{ $graphical }} root = {{ $root }} + pass = {{ $pass }} diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index 6d5e65d..1f419fd 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -13,6 +13,7 @@ [commit] gpgsign = true +{{ if .pass }} [sendemail] smtpServer = mzhang.io smtpServerPort = 465 @@ -20,6 +21,7 @@ smtpPass = {{ pass "email/mail@mzhang.io" }} smtpEncryption = ssl confirm = auto +{{ end }} # vim: set filetype=gitconfig: