X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/6213a6b7c3b85d242846878244bd016392164949..caa63513a77c06b9bd63c6a2c7031b297cd8030f:/dot/bash_profile diff --git a/dot/bash_profile b/dot/bash_profile index 1621d13..764f6b3 100644 --- a/dot/bash_profile +++ b/dot/bash_profile @@ -1,4 +1,4 @@ -### -*-sh-*- +### -*-bash-*- ### ### Bash startup things @@ -59,10 +59,6 @@ __mdw_programp () { type -t >/dev/null "$1"; } HOME=`(set -P; cd $HOME; pwd)` cd $HOME -## Establish a temporary directory. -[ "$TMPDIR" ] || eval `tmpdir -b` -export TMP=$TMPDIR - ## CDE's session structure is demented and doesn't leave us with a proper ## logout hook, so synthesize one here. [ -n "$DT" ] && trap "source $HOME/.bash_logout" EXIT @@ -98,6 +94,10 @@ __mdw_addto PYTHONPATH r $HOME/lib/python ###-------------------------------------------------------------------------- ### Various other kinds of configuration. +## Establish a temporary directory. +[ "$TMPDIR" ] || eval `tmpdir -b` +export TMP=$TMPDIR + ## Sensible umask if users have their own groups. umask 002 @@ -150,7 +150,7 @@ export LC_COLLATE=POSIX LANG ## Pager configuration. export MDW_PAGER=`type -p less` PAGER=mdw-pager METAMAIL_PAGER=mdw-pager -export LESS="-iqgRh1FX" +export LESS="-iqgRh1FSX" export LESSOPEN="|lesspipe.sh %s" case "${LC_CTYPE-$LANG}" in *utf8 | *utf-8 | *UTF8 | *UTF-8) LESSCHARSET=utf-8 ;;