diff options
author | David Runge <dave@sleepmap.de> | 2015-03-11 18:50:24 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2015-03-11 18:50:24 +0100 |
commit | 78d47f7aca8e4f47c0d6714a7cb0095ff1975e07 (patch) | |
tree | 18b774815d3abf552d660005457b56614b342ec4 | |
parent | 84aae61d98ea41d45587723c6edffc98cefb40f1 (diff) | |
download | dotfiles-78d47f7aca8e4f47c0d6714a7cb0095ff1975e07.tar.gz dotfiles-78d47f7aca8e4f47c0d6714a7cb0095ff1975e07.tar.bz2 dotfiles-78d47f7aca8e4f47c0d6714a7cb0095ff1975e07.tar.xz dotfiles-78d47f7aca8e4f47c0d6714a7cb0095ff1975e07.zip |
export.zsh: Don't use /run/user/ directory for roots TMUX_TMPDIR.
-rw-r--r-- | .zsh.after/export.zsh | 4 |
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 |