gnupg/root

This commit is contained in:
Marc Beninca 2023-05-10 00:27:50 +02:00
parent b52612afed
commit 74c01068b4

View file

@ -1,5 +1,7 @@
if [ ${EUID} -ne 0 ] ; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
gpg-connect-agent updatestartuptty /bye > /dev/null gpg-connect-agent updatestartuptty /bye > /dev/null
fi
alias gpgoff='gpgconf --kill gpg-agent' alias gpgoff='gpgconf --kill gpg-agent'