Note that there's a lot you could argue about the use of
Suffice to say, if you have your own way of using python, use that to install Pygments :)
Thanks, your pcat command is great stuff.
But I should show people how to install Pygments with Python3 (it's faster than Python2, which means faster bootup and faster colorizing, in other words it takes less time to run the pygmentize command).
First, install python2 and python3 properly via Homebrew as follows:
Then, to install Pygments, I just ran:
Thanks again for your great pygmentize options alias!
Also a note for others, regarding this command:
As for the command itself, it's correctly setup (I checked via
Regarding the styles, most of them are not good for terminal (due to things like black text on a black background). But here's a list of the best ones for terminal (and the absolute best ones are