if (( ${+commands[gpg]} )) {
# SSH_AUTH_SOCK should be set in a remote SSH session for passthrough
# if it isn't, we are likely the first login shell on the local machine
if (( ${+commands[gpg]} )) {
# SSH_AUTH_SOCK should be set in a remote SSH session for passthrough
# if it isn't, we are likely the first login shell on the local machine
gpg-connect-agent UPDATESTARTUPTTY /bye >/dev/null
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
}
gpg-connect-agent UPDATESTARTUPTTY /bye >/dev/null
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
}