15 lines
263 B
Bash
15 lines
263 B
Bash
|
# 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
|
||
|
}
|