From fd80dfbc2a28befbed496506f00277269063e00b Mon Sep 17 00:00:00 2001 From: Gardouille Date: Sun, 9 Oct 2016 15:12:05 +0200 Subject: [PATCH] Clean gpg-agent call --- zlogin | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/zlogin b/zlogin index 876e24c..ad432dc 100644 --- a/zlogin +++ b/zlogin @@ -86,8 +86,10 @@ if [ -f $HOME/.ssh/id_rsa ]; then . $HOME/.keychain/$HOST-sh fi -# Launch Keychain for GPG -#[ -f $HOME/.keychain/$HOST-sh-gpg ] && \ - #keychain --agents gpg - #. $HOME/.keychain/$HOST-sh-gpg +# GPG Agent +if [ -f $HOME/.gnupg/secring.gpg ]; then + # Keychain + keychain --noask --systemd --agents gpg + . $HOME/.keychain/$HOST-sh-gpg +fi