Browse Source

Change $TMPDIR for non-interactive shells

This commit changes the way $TMPDIR is set by using `mktemp` rather
than a fixed string.
master
Jared Scott 8 years ago committed by Kaleb Elwert
parent
commit
3a6ae0fc6c
  1. 3
      runcoms/zprofile

3
runcoms/zprofile

@ -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