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@thinkpad ~ $ cat .gnupg/gpg-agent.conf|grep write
write-env-file /home/zx2c4/.gnupg/gpg-agent-info
_______________________________________________
Password-Store mailing list
[email protected]
http://lists.zx2c4.com/mailman/listinfo/password-store

Reply via email to