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