mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-02 20:09:26 +00:00
Avoid setting TMPDIR and make sure all modules handle that properly
Fixes #1206
This commit is contained in:
@ -61,16 +61,3 @@ export LESS='-F -g -i -M -R -S -w -X -z-4'
|
||||
if (( $#commands[(i)lesspipe(|.sh)] )); then
|
||||
export LESSOPEN="| /usr/bin/env $commands[(i)lesspipe(|.sh)] %s 2>&-"
|
||||
fi
|
||||
|
||||
#
|
||||
# Temporary Files
|
||||
#
|
||||
#
|
||||
# Set TMPDIR if the variable is not set/empty or the directory doesn't exist
|
||||
if [[ -z "${TMPDIR}" ]]; then
|
||||
export TMPDIR="/tmp/zsh-${UID}"
|
||||
fi
|
||||
|
||||
if [[ ! -d "${TMPDIR}" ]]; then
|
||||
mkdir -m 700 "${TMPDIR}"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user