Files
oam/snippets/gpg.fish
2024-04-23 18:15:58 +02:00

9 lines
217 B
Fish

#!fish
gpg-connect-agent reloadagent '/bye'
gpgconf --launch gpg-agent \
&& gpg-connect-agent updatestartuptty '/bye' \
&& set -x 'SSH_AUTH_SOCK' (gpgconf --list-dirs 'agent-ssh-socket') \
&& set -x 'GPG_TTY' (tty)