summary refs log tree commit diff stats
path: root/tag-zsh/config/zsh
diff options
context:
space:
mode:
authorAlan Pearce2017-02-28 14:58:09 +0100
committerAlan Pearce2017-02-28 14:58:09 +0100
commit49a5ac56ccf6bea186dcf0bfccb32bb82b05a772 (patch)
tree9b432f3610b1e3f4e9d0f9064d1a5816cf44345c /tag-zsh/config/zsh
parent21d5403fe6d5d0c6d51cda1d6080a62496e9b243 (diff)
downloadnixfiles-49a5ac56ccf6bea186dcf0bfccb32bb82b05a772.tar.lz
nixfiles-49a5ac56ccf6bea186dcf0bfccb32bb82b05a772.tar.zst
nixfiles-49a5ac56ccf6bea186dcf0bfccb32bb82b05a772.zip
Fix setting SSH_AUTH_SOCK
Diffstat (limited to 'tag-zsh/config/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