This commit is contained in:
Marc Beninca 2024-11-17 17:28:52 +01:00
parent cb3c7de641
commit 93a9ed20d5
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 15 additions and 14 deletions

View file

@ -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
}

View file

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