From a3383fb685558925f4002964f1f647687bbaecce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Sat, 5 Aug 2017 18:55:31 +0200 Subject: [PATCH] Eval ssh-agent directly --- zsh/zprofile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/zsh/zprofile b/zsh/zprofile index 96e4dab..1d7cf51 100644 --- a/zsh/zprofile +++ b/zsh/zprofile @@ -39,14 +39,8 @@ if ! pgrep -x --uid "${USER}" gpg-agent >/dev/null 2>&1; then eval $(gpg-agent --daemon --sh) fi -# Set SSH to use gpg-agent -unset SSH_AGENT_PID -if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then - export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" -fi - -# Set GPG TTY -export GPG_TTY=$(tty) +# because gpg-agent is somehow broken for ssh, use the usual ssh-agent +eval $(ssh-agent -s) # exec startx breaks some logind fuckery, without exec it works if [[ -z $DISPLAY ]] ; then