1
0
Fork 0
dotfiles/.config/X11/xsession.d/60gpg-agent

8 lines
201 B
Bash

# vim:set ft=sh
if [ "${SSH_AUTH_SOCK:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
export GPG_TTY="$(tty)"
gpg-connect-agent updatestartuptty /bye >/dev/null