sh/shell/alias/gpg.sh
2024-11-17 17:18:36 +01:00

14 lines
247 B
Bash

# 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
}