[pass] GPGTools OS X

Jason A. Donenfeld Jason at zx2c4.com
Thu Sep 25 16:13:31 CEST 2014


Do you allow gpg-agent to export its environment variables to the current
shell?

I have something like this in my .bashrc:

if [ -f "$HOME/.gnupg/gpg-agent-info" ]; then
        source "$HOME/.gnupg/gpg-agent-info"
fi
if [ -n "$GPG_AGENT_INFO" -a -d "/proc/$(cut -d : -f 2
<<<"$GPG_AGENT_INFO")" -a -S "$(cut -d : -f 1 <<<"$GPG_AGENT_INFO")" ]; then
        export GPG_AGENT_INFO
        export SSH_AUTH_SOCK
        export SSH_AGENT_PID
else
        old_umask=$(umask)
        umask 077
        eval $(gpg-agent --daemon)
        umask "$old_umask"
        unset old_umask
fi

With the config written by:


zx2c4 at thinkpad ~ $ cat .gnupg/gpg-agent.conf|grep write
write-env-file /home/zx2c4/.gnupg/gpg-agent-info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20140925/2d1c823c/attachment.html>


More information about the Password-Store mailing list