Skip to content

Instantly share code, notes, and snippets.

@vnys
Forked from marianposaceanu/code_highlight_in_cat.md
Created February 24, 2018 14:40
Show Gist options
  • Save vnys/23f7c499752eece4544863c20c3835be to your computer and use it in GitHub Desktop.
Save vnys/23f7c499752eece4544863c20c3835be to your computer and use it in GitHub Desktop.

in terminal

apt-get install pygments

in case the 'binary' pygmentize is not found

  • Download the most recent tarball from the here
  • Unpack the tarball
  • sudo python setup.py install

in ~/.bashrc or ~/.zhsrc

alias cat="pygmentize -O style=monokai -f console256 -g"

credits : based on this article, don't really understand the language but good stuff nevertheless

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment