gak,gau
This commit is contained in:
parent
46704e9e37
commit
07f5f9f4e9
2 changed files with 14 additions and 15 deletions
14
sh/alias/gpg.sh
Normal file
14
sh/alias/gpg.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
# 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
|
||||
}
|
15
sh/gpg.sh
15
sh/gpg.sh
|
@ -1,18 +1,3 @@
|
|||
# turn gpg agent off
|
||||
gak() { gpg_agent_kill "${@}"; }
|
||||
sh_gpg_agent_kill() {
|
||||
gpgconf \
|
||||
--kill "gpg-agent"
|
||||
}
|
||||
|
||||
# bind gpg agent to current tty
|
||||
gau() { gpg_agent_update "${@}"; }
|
||||
sh_gpg_agent_update() {
|
||||
gpg-connect-agent \
|
||||
updatestartuptty \
|
||||
/bye
|
||||
}
|
||||
|
||||
sh_gpg_ssh() {
|
||||
local user_id
|
||||
user_id=$(id --user)
|
||||
|
|
Loading…
Reference in a new issue