1
0
Fork 0

Change $TMPDIR for non-interactive shells

This commit changes the way $TMPDIR is set by using `mktemp` rather
than a fixed string.
pull/869/merge
Jared Scott 8 years ago committed by Kaleb Elwert
parent dcd8596192
commit 3a6ae0fc6c

@ -67,8 +67,7 @@ fi
#
if [[ ! -d "$TMPDIR" ]]; then
export TMPDIR="/tmp/$LOGNAME"
mkdir -p -m 700 "$TMPDIR"
export TMPDIR="$(mktemp -d)"
fi
TMPPREFIX="${TMPDIR%/}/zsh"

Loading…
Cancel
Save