2

I just bought a new Mac and I copied my .profile settings onto the new Mac, which enabled different colors for folders and documents.

export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagabeb

But on my old Mac output from ping used to be colorful, and I've no idea why it is colorful. I cannot replicate the same behavior on my new Mac, does anyone know what command/script will give the following colorful output for ping? Thank you.

enter image description here

2
  • Do you still have your old Mac with the same install? which and type could point to a potential alias/function that wrapped ping and provided the color output.
    – ZeroKnight
    Commented Nov 23, 2016 at 10:00
  • type did the trick, after some analysis I figured it out.
    – Alex Su
    Commented Nov 25, 2016 at 10:49

1 Answer 1

3

I will answer my own question here, it is grc, which can be installed from homebrew.

brew install grc
source "`brew --prefix`/etc/grc.bashrc"

source: https://superuser.com/a/960065/525673

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .