summary refs log tree commit diff stats
path: root/tag-zsh
diff options
context:
space:
mode:
Diffstat (limited to 'tag-zsh')
-rw-r--r--tag-zsh/config/zsh/zshenv2
1 files changed, 1 insertions, 1 deletions
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