aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--zsh/.zshenv2
1 files changed, 1 insertions, 1 deletions
diff --git a/zsh/.zshenv b/zsh/.zshenv
index 90607b3..24818a1 100644
--- a/zsh/.zshenv
+++ b/zsh/.zshenv
@@ -53,7 +53,7 @@ export ZDATADIR=$XDG_DATA_HOME/zsh
export ZSTATEDIR=$XDG_STATE_HOME/zsh
# TMPDIR
-if [[ -n $TMPDIR && -d $TMPDIR && ! -w $TMPDIR ]]; then
+if [[ -n $TMPDIR && -d $TMPDIR && -w $TMPDIR ]]; then
export TMPDIR=${TMPDIR%/}
elif [[ $OSTYPE == linux* && -d /run/user/$UID && -w /run/user/$UID ]]; then
export TMPDIR=/run/user/$UID