# turn gpg agent off gak() { gpg_agent_kill "${@}"; } gpg_agent_kill() { gpgconf \ --kill "gpg-agent" } # bind gpg agent to current tty gau() { gpg_agent_update "${@}"; } gpg_agent_update() { gpg-connect-agent \ updatestartuptty \ /bye }