dot/shell-rc: Force the policy on `ls', like it is in `diff' and `grep'.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 12 May 2024 23:39:13 +0000 (00:39 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 12 May 2024 23:39:13 +0000 (00:39 +0100)
dot/shell-rc

index d3a45da..5251e98 100644 (file)
@@ -250,7 +250,7 @@ mdw_colour_p () {
 ## Arrange for `ls' output to be in colour.
 unalias ls 2>/dev/null || :
 ls () {
-  if mdw_colour_p; then command ls $LS_OPTIONS ${LS_COLORS+--color=auto} "$@"
+  if mdw_colour_p; then command ls $LS_OPTIONS ${LS_COLORS+--color=always} "$@"
   else command ls "$@"; fi
 }