'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'
Written by Osvaldo Zonetti
Related protips
1 Response
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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#