# Use ~/tmp as directory for temporary files if available to reduce security
# problems on multi-user systems.
-if [ -d ~/tmp ]; then
+if [ -O ~/tmp -a -d ~/tmp ]; then
TMP=~/tmp
+ TEMP=$TMP
TMPDIR=$TMP
- export TMP TMPDIR
+ export TMP TEMP TMPDIR
fi
# Set colors for GNU ls (and zsh completions). This colors files normal (fi),