1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2026-04-27 19:11:35 +00:00

zprofile: Use non-random static TMPDIR

Closes #1319
This commit is contained in:
Alexander Neumann
2017-06-13 10:51:23 +02:00
committed by Kaleb Elwert
parent 14670f40f0
commit 5bcc223e95
+6 -1
View File
@@ -65,9 +65,14 @@ fi
#
# Temporary Files
#
#
if [[ -z "$TMPDIR" ]]; then
export TMPDIR="/tmp/zsh-$UID"
fi
if [[ ! -d "$TMPDIR" ]]; then
export TMPDIR="$(mktemp -d)"
mkdir "$TMPDIR"
chmod 700 "$TMPDIR"
fi
TMPPREFIX="${TMPDIR%/}/zsh"