colorized-cat.md
31 Mar 2016 | bashProblem : It can be cool to have some syntax color highlight when quickly checking the content of a file with “cat” Goal : We are going to use pigmentize and create an alias called “pcat” (pygmentized cat)
Setup :
- install pigmentize
sudo apt-get install python-pygments
- open your bashrc and add the line “alias pcat=’pygmentize -g’”
- source your bashrc (source ~/.bashrc)
- you can now use the following cmd : “pcat filename”
Comments