X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=shell%2Fenv;h=e8a1789df7cf0e37ef929ba176e4d7b3d7ba8e1d;hb=262a10162543ebbb237a1724e994b09cdfd852a2;hp=3395e4beb034b84567b9182bbaa6d5608ccd5bb3;hpb=b2e5bd4f5d284f66ef919054ed3bdc776e5498fc;p=config%2Fdotfiles.git diff --git a/shell/env b/shell/env index 3395e4b..e8a1789 100644 --- a/shell/env +++ b/shell/env @@ -34,10 +34,11 @@ export PAGER # 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),