From 49a5ac56ccf6bea186dcf0bfccb32bb82b05a772 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 28 Feb 2017 14:58:09 +0100 Subject: Fix setting SSH_AUTH_SOCK --- tag-zsh/config/zsh/zshenv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tag-zsh/config/zsh/zshenv') diff --git a/tag-zsh/config/zsh/zshenv b/tag-zsh/config/zsh/zshenv index e75704ca..f1cad02f 100644 --- a/tag-zsh/config/zsh/zshenv +++ b/tag-zsh/config/zsh/zshenv @@ -14,7 +14,7 @@ then if [[ -z $SSH_AUTH_SOCK ]] then - export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent.socket + export SSH_AUTH_SOCK=${XDG_RUNTIME_DIR:-/run/user/$UID}/ssh-agent fi case $OSTYPE in -- cgit 1.4.1