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: