0

When using Ubuntu I get these colors when using grep (grep -r "MSP" .):

enter image description here

I want the same result when using macOS Monterey. I tried to add

export GREP_OPTIONS='--color=auto'

to my bash profile and I get only colors in the search term:

enter image description here

How can I add the colors like in the Ubuntu case, where the filenames are also colored?

jimtut
  • 1,714
Miguel
  • 101
  • 1
  • 4

0 Answers0