Skip to content

Instantly share code, notes, and snippets.

@BretFisher
Last active October 22, 2025 09:55
Show Gist options
  • Select an option

  • Save BretFisher/6f688dde0122399efdca5a9d26100437 to your computer and use it in GitHub Desktop.

Select an option

Save BretFisher/6f688dde0122399efdca5a9d26100437 to your computer and use it in GitHub Desktop.
On macOS: Install pygmentize and alias pcat for shell code syntax highlighting
# first install pygmentize to the mac OS X or macOS system with the built-in python
sudo easy_install Pygments
# then add alias to your ~/.bash_profile or ~/.bashrc or ~/.zshrc etc.
alias pcat='pygmentize -f terminal256 -O style=native -g'
@CuongNgMan
Copy link

I've stopped using pcat years ago, and now use bat: https://github.com/sharkdp/bat

Greate advice. Thanks.

@slevinas
Copy link

thanks a lot!

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