X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/7738df0be3d4c8e708c85d9d19296d0106e3cb86..96f2d8b3774ab7fa07a42d2c42d6a690b74f4381:/dot/bash_profile diff --git a/dot/bash_profile b/dot/bash_profile index d3d179a..27eec06 100644 --- a/dot/bash_profile +++ b/dot/bash_profile @@ -1,4 +1,4 @@ -### -*-sh-*- +### -*-bash-*- ### ### Bash startup things @@ -69,7 +69,7 @@ cd $HOME ## The main path. __mdw_addto PATH l \ $HOME/bin \ - {,/usr{,/local}{,/X11R6}}{/bin,/sbin,/games} \ + {/usr{/local,}{,/X11R6},}{/bin,/sbin,/games} \ /opt/nfast{,/gcc}{/bin,/sbin} \ $HOME/src/ncipher/scripts @@ -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 ;; @@ -182,6 +182,20 @@ export PERL_READLINE_NOWARN=yes ## If we have `distcc' then tell `ccache' to use it. __mdw_programp distcc && export CCACHE_PREFIX=distcc +## Choose a sensible web browser. If we have a display, try to pick a +## graphical one. +browsers="elinks w3m lynx" +case "${DISPLAY+t}" in + t) browsers="mdw-chrome iceweasel firefox $browsers" ;; +esac +for i in $browsers; do + if __mdw_programp $i; then + export BROWSER=$i + break + fi +done +unset browsers + ## Acquiring root privileges. This is mainly the job of `bashrc', but we ## cache the mechanism here. export __MDW_ROOTLY=`mdw-conf rootly`