parent
14670f40f0
commit
5bcc223e95
1 changed files with 6 additions and 1 deletions
|
@ -65,9 +65,14 @@ fi
|
|||
#
|
||||
# Temporary Files
|
||||
#
|
||||
#
|
||||
if [[ -z "$TMPDIR" ]]; then
|
||||
export TMPDIR="/tmp/zsh-$UID"
|
||||
fi
|
||||
|
||||
if [[ ! -d "$TMPDIR" ]]; then
|
||||
export TMPDIR="$(mktemp -d)"
|
||||
mkdir "$TMPDIR"
|
||||
chmod 700 "$TMPDIR"
|
||||
fi
|
||||
|
||||
TMPPREFIX="${TMPDIR%/}/zsh"
|
||||
|
|
Loading…
Reference in a new issue