diff --git a/.gnupg/sshcontrol b/.gnupg/sshcontrol index b137079..5faff50 100644 --- a/.gnupg/sshcontrol +++ b/.gnupg/sshcontrol @@ -1,2 +1,3 @@ 8870E499C64EEB7720EBA5A442F4FE90129BFAE3 +# End of file diff --git a/.zshrc b/.zshrc index dfbfd1e..d8cfddc 100644 --- a/.zshrc +++ b/.zshrc @@ -83,13 +83,9 @@ unset SSH_AGENT_PID if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" fi -export GPG_TTY=$(tty) +export GPG_TTY="$(tty)" gpg-connect-agent updatestartuptty /bye >/dev/null -export KEYGRIP=8870E499C64EEB7720EBA5A442F4FE90129BFAE3 -# Sometimes gpg has a bug and needs to re-import key -alias gbye='gpg-connect-agent "delete_key $KEYGRIP" /bye' - if [ -f ~/.aliases ]; then . ~/.aliases fi