I recently found an example of colored output when using ls:
AFAIK that is on MacOS with the BSD implementation of
I know how I can change the color of the filenames via
LS_COLOR, but I would like to color e.g. the permissions.
I could think of a combination of
sed, ANSI escape codes and printing the output back to stdout, but that feels very heavy.
Has anyone an idea on how to accomplish that task with GNU