1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-23 00:17:59 +00:00

[Fix #437] Always set $TMPDIR

This commit is contained in:
Sorin Ionescu 2013-05-23 15:58:55 -04:00
parent 1622abb830
commit c9c3b40b5c

View File

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