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