From e9388c8808079d5b94a8624c6d1418f9b7642b0b Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 19 Apr 2018 09:58:14 +0200 Subject: .zsh.after/export.zsh: Not exporting SSH_AUTH_SOCK for root and when on macOS. Explicitely pointing TMUX_TMPDIR to /tmp on macOS. --- .zsh.after/export.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2