From 78d47f7aca8e4f47c0d6714a7cb0095ff1975e07 Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 11 Mar 2015 18:50:24 +0100 Subject: export.zsh: Don't use /run/user/ directory for roots TMUX_TMPDIR. --- .zsh.after/export.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.zsh.after/export.zsh b/.zsh.after/export.zsh index f2b2d9a..a602d79 100644 --- a/.zsh.after/export.zsh +++ b/.zsh.after/export.zsh @@ -40,4 +40,6 @@ fi # Explicitely starting gpg-agent in the background gpgconf --launch gpg-agent -export TMUX_TMPDIR="/run/user/$UID/tmux/" +if [[ $UID -ne 0 ]]; then + export TMUX_TMPDIR="/run/user/$UID/tmux/" +fi -- cgit v1.2.3-70-g09d2