diff options
-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 |