## 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
## 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`