• 3 Posts
  • 558 Comments
Joined 2 years ago
cake
Cake day: July 7th, 2023

help-circle


  • hmm this gives me all colors (from ls and grep)

    /usr/bin/ls -l --color=always | /usr/bin/grep --color=always a
    

    (I’m using their full paths because I usually alias ls and grep to eza and rg respectively)

    There’s a export CLICOLOR_FORCE=1 you can try to avoid repeating --color=always, but that didn’t work for me with ls and grep specifically.

    Edit: there’s also a FORCE_COLOR=1 that is popular, but again, neither ls nor grep seem to care.