Dog not Cat - Colored output in from cat in the terminal

How to make cat have colored output?

sudo easy_install Pygments

Then edit your .bashrc, .bash_profile or .zshrc and add the following line:

alias dog="pygmentize -g"

Source it and you are good to go.

dog myfile

Will give you colored output. Nice!


Found around the web.