From: Nicolas Boisselier Date: Wed, 20 Dec 2017 03:30:07 +0000 (+0000) Subject: etc/profile.d/gnupg.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=70233417872fe32fa35c62c2c60de1cac2ee8342;p=nb.git etc/profile.d/gnupg.sh --- diff --git a/etc/profile.d/gnupg.sh b/etc/profile.d/gnupg.sh new file mode 100644 index 00000000..49c61fde --- /dev/null +++ b/etc/profile.d/gnupg.sh @@ -0,0 +1,6 @@ +# You should start the agent like this. +# eval $(gpg-agent --daemon --write-env-file "${HOME}/.gnupg/.gpg-agent-info)" +if [ -f "${HOME}/.gnupg/.gpg-agent-info" ]; then + . "${HOME}/.gnupg/.gpg-agent-info" + export GPG_AGENT_INFO +fi