Browse Source

zprofile: Use non-random static TMPDIR

Closes #1319
master
Alexander Neumann 8 years ago committed by Kaleb Elwert
parent
commit
5bcc223e95
  1. 7
      runcoms/zprofile

7
runcoms/zprofile

@ -65,9 +65,14 @@ fi
# #
# Temporary Files # Temporary Files
# #
#
if [[ -z "$TMPDIR" ]]; then
export TMPDIR="/tmp/zsh-$UID"
fi
if [[ ! -d "$TMPDIR" ]]; then if [[ ! -d "$TMPDIR" ]]; then
export TMPDIR="$(mktemp -d)" mkdir "$TMPDIR"
chmod 700 "$TMPDIR"
fi fi
TMPPREFIX="${TMPDIR%/}/zsh" TMPPREFIX="${TMPDIR%/}/zsh"

Loading…
Cancel
Save