This commit is contained in:
Marc Beninca 2024-11-19 09:22:24 +01:00
parent 46704e9e37
commit 07f5f9f4e9
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 14 additions and 15 deletions

14
sh/alias/gpg.sh Normal file
View 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
}

View file

@ -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() { sh_gpg_ssh() {
local user_id local user_id
user_id=$(id --user) user_id=$(id --user)