gpg
This commit is contained in:
parent
4d8be7e299
commit
9a83206f3c
1 changed files with 4 additions and 4 deletions
|
@ -1,19 +1,19 @@
|
|||
# turn gpg agent off
|
||||
gak() { gpg_agent_kill "${@}"; }
|
||||
gpg_agent_kill() {
|
||||
sh_gpg_agent_kill() {
|
||||
gpgconf \
|
||||
--kill "gpg-agent"
|
||||
}
|
||||
|
||||
# bind gpg agent to current tty
|
||||
gau() { gpg_agent_update "${@}"; }
|
||||
gpg_agent_update() {
|
||||
sh_gpg_agent_update() {
|
||||
gpg-connect-agent \
|
||||
updatestartuptty \
|
||||
/bye
|
||||
}
|
||||
|
||||
gpg_ssh() {
|
||||
sh_gpg_ssh() {
|
||||
local user_id
|
||||
user_id=$(id --user)
|
||||
if [ "${user_id}" -ne 0 ]; then
|
||||
|
@ -24,4 +24,4 @@ gpg_ssh() {
|
|||
fi
|
||||
}
|
||||
|
||||
gpg_ssh
|
||||
sh_gpg_ssh
|
||||
|
|
Loading…
Reference in a new issue