Skip to content

Instantly share code, notes, and snippets.

@sbstp
Created June 27, 2014 16:01
Show Gist options
  • Save sbstp/ab209417cb8466e3b637 to your computer and use it in GitHub Desktop.
Save sbstp/ab209417cb8466e3b637 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Requires pygments (the python library)
# Installation:
# pip install pygments
# Download the script and make it executable.
# Usage:
# code <filename>
pygmentize -f terminal $1 | less -R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment