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

9 lines
208 B
Text
Raw Normal View History

2023-05-24 16:53:44 +02:00
#!/bin/sh
2023-02-07 16:35:27 +01:00
if [ "${SSH_AUTH_SOCK:-0}" -ne $$ ]; then
2023-04-12 11:37:10 +02:00
sock="$(gpgconf --list-dirs agent-ssh-socket)"
export SSH_AUTH_SOCK=$sock
2023-02-07 16:35:27 +01:00
fi
2023-04-12 11:37:10 +02:00
export GPG_TTY="$TTY"
2023-02-07 17:19:53 +01:00
gpg-connect-agent updatestartuptty /bye >/dev/null