DISQUS

dmiessler.com | grep understanding: How to Add Directory Colors to OS X’s Terminal

  • Joel · 1 year ago

    The switch you're looking for is '-G'.


    ls -lG

  • Ben L · 1 year ago

    This is because OS X uses BSD ls.

  • Adrian Bool · 1 year ago
    A related set of env variables I stumbled upon a day or two ago... very handy...

    export GREP_OPTIONS='--color=auto'
    export GREP_COLOR='1;33'