+## Ncurses programs should use the Unicode box-drawing characters because the
+## alternative character set stuff isn't supported well.
+export NCURSES_NO_UTF8_ACS=1
+
+## Shut up Perl's readline machinery.
+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-iceweasel 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.
+__mdw_setconf __MDW_ROOTLY rootly
+export BECOME="--preserve-environment"
+
+## It's useful to see the little sigils in `ls'.
+[ -z "$LS_OPTIONS" ] && export LS_OPTIONS="-F"
+
+## Settings for BBC BASIC listing.
+export BASCAT="-l +n"
+
+## Version control hacking.
+export CVS_RSH=ssh
+__mdw_setconf CVSROOT cvs-root
+__mdw_setconf SVNROOT svn-root
+export P4CONFIG=.p4
+
+## News server.
+__mdw_setconf NNTPSERVER nntp-server
+
+## Help X programs find their resources.