mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-25 01:26:05 +01:00
10 lines
237 B
Bash
10 lines
237 B
Bash
|
GPG_TTY=$(tty)
|
||
|
export GPG_TTY
|
||
|
gpg-connect-agent updatestartuptty /bye >/dev/null
|
||
|
|
||
|
unset SSH_AGENT_PID
|
||
|
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
||
|
SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||
|
export SSH_AUTH_SOCK
|
||
|
fi
|