rwx/sh/alias/gpg.sh

15 lines
263 B
Bash
Raw Normal View History

2024-11-19 08:22:24 +00:00
# turn gpg agent off
gak() { sa__gpg_agent_kill "${@}"; }
sa__gpg_agent_kill() {
gpgconf \
--kill "gpg-agent"
}
# bind gpg agent to current tty
gau() { sa__gpg_agent_update "${@}"; }
sa__gpg_agent_update() {
gpg-connect-agent \
updatestartuptty \
/bye
}