Browse Source

Set $TMPPREFIX only when $TMPDIR is set

master
Sorin Ionescu 12 years ago
parent
commit
e8226dfaf3
  1. 8
      runcoms/zshenv

8
runcoms/zshenv

@ -94,8 +94,10 @@ unset path_file @@ -94,8 +94,10 @@ unset path_file
# Temporary Files
#
export TMPPREFIX="${TMPDIR%/}/zsh"
if [[ ! -d "$TMPPREFIX" ]]; then
mkdir -p "$TMPPREFIX"
if [[ -d "$TMPDIR" ]]; then
export TMPPREFIX="${TMPDIR%/}/zsh"
if [[ ! -d "$TMPPREFIX" ]]; then
mkdir -p "$TMPPREFIX"
fi
fi

Loading…
Cancel
Save