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