Respect $TMPDIR in $TMPREFIX

This commit is contained in:
Sorin Ionescu 2012-08-31 19:44:29 -04:00
parent 75bca681c1
commit 68bbf22992
1 changed files with 9 additions and 0 deletions

View File

@ -90,3 +90,12 @@ if (( $+commands[lesspipe.sh] )); then
export LESSOPEN='| /usr/bin/env lesspipe.sh %s 2>&-'
fi
#
# Temporary Files
#
export TMPPREFIX="${TMPDIR%/}/zsh"
if [[ ! -d "$TMPPREFIX" ]]; then
mkdir -v "$TMPPREFIX"
fi