### Colour output.
## Arrange for `ls' output to be in colour.
-if __mdw_programp dircolors; then eval $(dircolors -b "$HOME/.dircolors")
-else unset LS_COLORS; fi
-
unalias ls 2>/dev/null || :
ls () {
if [ -t 1 ]; then command ls $LS_OPTIONS ${LS_COLORS+--color=auto} "$@"
}
## Arrange for `grep' output to be in colour.
-export GREP_COLORS="mt=01;31:ms=01;31:mc=031;31:fn=36:ln=36:bn=36:se=34"
-
greplike () {
local grep=$1; shift
if [ -t 1 ]; then
alias zgrep="greplike zgrep"
## Arrange for `diff' output to be in colour.
-export DIFF_COLORS="hd=1:ln=36:ad=32:de=31"
difflike () {
local diff=$1; shift
if [ -t 1 ]; then