From 68bbf22992b6825fa1688c1b34a1aedd3b778ab4 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Fri, 31 Aug 2012 19:44:29 -0400 Subject: [PATCH] Respect $TMPDIR in $TMPREFIX --- runcoms/zshenv | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/runcoms/zshenv b/runcoms/zshenv index 827be56..40fa807 100644 --- a/runcoms/zshenv +++ b/runcoms/zshenv @@ -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 +