sh/bash/gpg.sh

5 lines
156 B
Bash
Raw Normal View History

2023-05-15 07:01:00 +00:00
if [ ${EUID} -ne 0 ] ; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
gpg-connect-agent updatestartuptty /bye > '/dev/null'
fi