gpg
This commit is contained in:
parent
cb3c7de641
commit
93a9ed20d5
2 changed files with 15 additions and 14 deletions
|
@ -1,14 +0,0 @@
|
|||
# turn gpg agent off
|
||||
gak() { gpg_agent_kill "${@}"; }
|
||||
gpg_agent_kill() {
|
||||
gpgconf \
|
||||
--kill "gpg-agent"
|
||||
}
|
||||
|
||||
# bind gpg agent to current tty
|
||||
gau() { gpg_agent_update "${@}"; }
|
||||
gpg_agent_update() {
|
||||
gpg-connect-agent \
|
||||
updatestartuptty \
|
||||
/bye
|
||||
}
|
15
shell/gpg.sh
15
shell/gpg.sh
|
@ -1,3 +1,18 @@
|
|||
# turn gpg agent off
|
||||
gak() { gpg_agent_kill "${@}"; }
|
||||
gpg_agent_kill() {
|
||||
gpgconf \
|
||||
--kill "gpg-agent"
|
||||
}
|
||||
|
||||
# bind gpg agent to current tty
|
||||
gau() { gpg_agent_update "${@}"; }
|
||||
gpg_agent_update() {
|
||||
gpg-connect-agent \
|
||||
updatestartuptty \
|
||||
/bye
|
||||
}
|
||||
|
||||
gpg_ssh() {
|
||||
local user_id
|
||||
user_id=$(id --user)
|
||||
|
|
Loading…
Reference in a new issue