From b52612afeddcc663d09689a91a9daf6be7206ed9 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 9 May 2023 23:32:24 +0200 Subject: [PATCH] gpg/ssh,tty --- bash/gnupg.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bash/gnupg.sh b/bash/gnupg.sh index 715e3ab..3d259ef 100644 --- a/bash/gnupg.sh +++ b/bash/gnupg.sh @@ -1,3 +1,6 @@ +export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" +gpg-connect-agent updatestartuptty /bye > /dev/null + alias gpgoff='gpgconf --kill gpg-agent' alias gpgtty='gpg-connect-agent updatestartuptty /bye'