diff --git a/shell/alias/gpg.sh b/shell/alias/gpg.sh deleted file mode 100644 index d971cab..0000000 --- a/shell/alias/gpg.sh +++ /dev/null @@ -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 -} diff --git a/shell/gpg.sh b/shell/gpg.sh index f9d6ef6..e4ebb38 100644 --- a/shell/gpg.sh +++ b/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)