mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 06:58:01 +00:00
Change $TMPDIR for non-interactive shells
This commit changes the way $TMPDIR is set by using `mktemp` rather than a fixed string.
This commit is contained in:
parent
dcd8596192
commit
3a6ae0fc6c
@ -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…
Reference in New Issue
Block a user