My ls command colors directories and files according to their type and permissions:
But when the window is too small to fit the content I pipe the result into
Which cannot correctly parse the escape code from ls and turn them into color. To fix that add
-r to the less command:
gls -F -G --color --group-directories-first -lah(
glsis GNU ls)
alias less=less -rif you want this to be the default behavior for less.