Support coloured output for ls and grep commands. This is actually a surprisingly small change in the code just to set the TERM environment variable, now that aliases are set up to use colour in both ls and grep commands by default. It uses the default ls colours which can be checked using dircolors --print-ls-colors; these could be overridden by setting an LS_COLORS env var.
Support coloured output for
ls
andgrep
commands. This is actually a surprisingly small change in the code just to set theTERM
environment variable, now that aliases are set up to use colour in bothls
andgrep
commands by default. It uses the defaultls
colours which can be checked usingdircolors --print-ls-colors
; these could be overridden by setting anLS_COLORS
env var.