sh/bash/gpg.sh
2023-05-15 09:01:00 +02:00

4 lines
156 B
Bash

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