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/1209/head
Jared Scott 8 years ago
parent 4f19700919
commit 3e241ff9e7

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

Loading…
Cancel
Save