X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=shell%2Fenv;h=b7b1e13a28d7e17b56c02e1693d01d26cacc61b3;hb=578959cbecd604285356baddd36f4c3178b0a127;hp=d478b17d8b9c5c69844980e38a3549fda3bb2701;hpb=003732b24ad7c6562550ae781a9ec01a29a31b0f;p=config%2Fdotfiles.git diff --git a/shell/env b/shell/env index d478b17..b7b1e13 100644 --- a/shell/env +++ b/shell/env @@ -28,15 +28,25 @@ 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 export TMP TEMP TMPDIR fi +# Change rlwrap's home directory to prevent cluttering ~. +RLWRAP_HOME=~/.shell/rlwrap +export RLWRAP_HOME + # Set colors for GNU ls (and zsh completions). # See `dircolors --print-database` for possible colors. LS_COLORS='no=00'