lzgryq
Last Updated: February 29, 2016
·
3.161K
· zonetti
F46c21deea19955ae03c8f28aa6b9f99

'cat' with syntax highlighting

Install pygmentize with easy_install or pip:

sudo apt-get install python-setuptools
sudo easy_install pygments

Then:

alias ccat='pygmentize -O style=monokai -f console256 -g'
Say Thanks
Respond

1 Response
Add your response

4562
70e1167dbde5397557b0ec6fabb3d90a

thanks for this!
In order for it to work in bash on Windows I had change it a bit like this.
I changed the alias so I still have the og cat command.

alias ccat='pygmentize -O style=monokai -f terminal -g'

thanks bro.

over 1 year ago ·
Filed Under