# chances of that are slim.
if [[ ! -v _sev_tmp ]] {
# create personal TMPDIR under system tmp
- t=${TMPDIR:-${TEMPDIR:-${TEMP:-${TMP:-/tmp}}}}/.home-$LOGNAME
+ t=${TMPDIR:-${TEMPDIR:-${TEMP:-${TMP:-${${TMPPREFIX%/zsh}:-/tmp}}}}}/.home-$LOGNAME
[[ -e $t ]] || mkdir -m700 $t 2>/dev/null
_sev_tmp=~/.local/tmp
if [[ ! -d $t ]] {
print -P "%F{red}!!! Can't create session tmp subdir $t, using $_sev_tmp%f"
t=$_sev_tmp
fi
- export _sev_tmp TMPDIR=$t TEMPDIR=$t TEMP=$t TMP=$t
+ export _sev_tmp TMPDIR=$t TEMPDIR=$t TEMP=$t TMP=$t TMPPREFIX=$t/zsh
}
unset t
}