mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 18:38:00 +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
|
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…
Reference in New Issue
Block a user