rwx/sh/alias/gpg.sh
2024-11-19 14:42:11 +01:00

14 lines
259 B
Bash

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