dot/profile, dot/shell-rc: Move colour settings into profile.
[profile] / dot / profile
index 93c5421..f8d4dc9 100644 (file)
@@ -308,6 +308,12 @@ PS_PERSONALITY=gnu; export PS_PERSONALITY
 DEB_BUILD_OPTIONS="parallel=$(mdw-conf make-parallel 4)"
 export DEB_BUILD_OPTIONS
 
+## Turn on useful colouring.
+if __mdw_programp dircolors; then eval $(dircolors -b "$HOME/.dircolors")
+else unset LS_COLORS; fi
+export GREP_COLORS="mt=01;31:ms=01;31:mc=031;31:fn=36:ln=36:bn=36:se=34"
+export DIFF_COLORS="hd=1:ln=36:ad=32:de=31"
+
 ## Turn off angry fruit salad error messages from things.
 DPKG_COLORS=never; export DPKG_COLORS
 GCC_COLORS=; export GCC_COLORS