Browse Source

[Fix #437] Always set $TMPDIR

master
Sorin Ionescu 12 years ago
parent
commit
c9c3b40b5c
  1. 11
      runcoms/zshenv

11
runcoms/zshenv

@ -64,10 +64,13 @@ fi @@ -64,10 +64,13 @@ fi
# Temporary Files
#
if [[ -d "$TMPDIR" ]]; then
export TMPPREFIX="${TMPDIR%/}/zsh"
if [[ ! -d "$TMPPREFIX" ]]; then
if [[ ! -d "$TMPDIR" ]]; then
export TMPDIR="/tmp/$USER"
mkdir -p -m 700 "$TMPDIR"
fi
TMPPREFIX="${TMPDIR%/}/zsh"
if [[ ! -d "$TMPPREFIX" ]]; then
mkdir -p "$TMPPREFIX"
fi
fi

Loading…
Cancel
Save