From 7363e51f4ee2b69592d1997fabe380c6bfa4eda7 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 17 Nov 2024 17:18:36 +0100 Subject: [PATCH] gpg --- shell/alias/gpg.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/shell/alias/gpg.sh b/shell/alias/gpg.sh index 4c1d4e5..d971cab 100644 --- a/shell/alias/gpg.sh +++ b/shell/alias/gpg.sh @@ -1,11 +1,13 @@ # turn gpg agent off -gak() { +gak() { gpg_agent_kill "${@}"; } +gpg_agent_kill() { gpgconf \ --kill "gpg-agent" } # bind gpg agent to current tty -gau() { +gau() { gpg_agent_update "${@}"; } +gpg_agent_update() { gpg-connect-agent \ updatestartuptty \ /bye