Syntax highlighting with pygments in the shell
First install Pygments:
And create this function in your .zshrc
or .bashrc
:
If you want a colorize display for less, you can add this function:
Now, you should have syntax highlighting if you use:
If you want to ask me a question or leave me a message add @bougui505 in your comment.