aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.zsh.after/export.zsh6
1 files changed, 5 insertions, 1 deletions
diff --git a/.zsh.after/export.zsh b/.zsh.after/export.zsh
index e0bdf6d..921401d 100644
--- a/.zsh.after/export.zsh
+++ b/.zsh.after/export.zsh
@@ -55,11 +55,15 @@ export GPG_TTY=$(tty)
export GPG_AGENT_INFO=""
# ssh-agent
-export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
+if [[ $UID -ne 0 ]] && [[ $VENDOR != "apple" ]];then
+ export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
+fi
# tmux
if [[ $UID -ne 0 ]] && [[ $VENDOR != "apple" ]]; then
export TMUX_TMPDIR="$XDG_RUNTIME_DIR/"
+else
+ export TMUX_TMPDIR="/tmp"
fi
# zsh