From f63fe1c0d0b6a5cf437ebdec5f1f19acace9d594 Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Sun, 21 Feb 2021 10:23:18 -0300 Subject: [PATCH] Add GPG support --- dot_gitconfig.tmpl | 1 + dot_profile.tmpl | 2 ++ dot_zshrc | 2 ++ 3 files changed, 5 insertions(+) diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index 01e9a1e9..63e6db26 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -1,6 +1,7 @@ [user] name = {{ .name }} email = {{ .email }} + signingkey = 5BD49ECCC1C37DFE [core] autocrlf = input safecrlf = false diff --git a/dot_profile.tmpl b/dot_profile.tmpl index 770c8dc0..70249bcc 100644 --- a/dot_profile.tmpl +++ b/dot_profile.tmpl @@ -68,3 +68,5 @@ fi export VISUAL="{{ .editor }}" export EDITOR="{{ .editor }}" + +export GPG_TTY=$(tty) diff --git a/dot_zshrc b/dot_zshrc index 0853704a..df9e36cb 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -12,6 +12,8 @@ if [ -f "$HOME/.profile" ]; then source "$HOME/.profile" fi +export GPG_TTY=$(tty) + # Load bash aliases if [ -f "$HOME/.bash_aliases" ]; then source "$HOME/.bash_aliases"