X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=shell%2Fenv;h=b7b1e13a28d7e17b56c02e1693d01d26cacc61b3;hb=67988bdbeecddce25b3c64ec8f23fdc4d8d9fb66;hp=0739edf061ca91822e9cd206ce409c35eb00bf5f;hpb=3dc5f80854c4a9a411220625158307b01ff2930a;p=config%2Fdotfiles.git diff --git a/shell/env b/shell/env index 0739edf..b7b1e13 100644 --- a/shell/env +++ b/shell/env @@ -28,9 +28,15 @@ export EDITOR PAGER=less export PAGER -# Use ~/tmp as directory for temporary files if available to reduce security +# Use ~/.tmp as directory for temporary files if available to reduce security # problems on multi-user systems. -if [ -O ~/tmp -a -d ~/tmp ]; then +if [ -O ~/.tmp -a -d ~/.tmp ]; then + TMP=~/.tmp + TEMP=$TMP + TMPDIR=$TMP + export TMP TEMP TMPDIR +# Also try ~/tmp as fallback. +elif [ -O ~/tmp -a -d ~/tmp ]; then TMP=~/tmp TEMP=$TMP TMPDIR=$TMP