aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-03-20 00:26:10 +0100
committerDavid Runge <dave@sleepmap.de>2015-03-20 00:26:10 +0100
commita0ef42e0a70ac6264835ba77936d1ba5bf2294fe (patch)
treecfb4a962f47fe73830005835ecde7b322153f100
parent534aca2f395c3840c2a669a8654a3e9aecbc6f9f (diff)
parent378c9f89e43d135f6b8c7ae263643441d1193758 (diff)
downloaddotfiles-a0ef42e0a70ac6264835ba77936d1ba5bf2294fe.tar.gz
dotfiles-a0ef42e0a70ac6264835ba77936d1ba5bf2294fe.tar.bz2
dotfiles-a0ef42e0a70ac6264835ba77936d1ba5bf2294fe.tar.xz
dotfiles-a0ef42e0a70ac6264835ba77936d1ba5bf2294fe.zip
Merge branch 'master' of sleepmap.de:dotfiles
* 'master' of sleepmap.de:dotfiles: export.zsh: Don't use /run/user/ directory for roots TMUX_TMPDIR.
-rw-r--r--.zsh.after/export.zsh4
1 files changed, 3 insertions, 1 deletions
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