Skip to content

Instantly share code, notes, and snippets.

@bobylito
Last active October 31, 2017 05:08
Show Gist options
  • Save bobylito/58ae0759d04da5d7d933 to your computer and use it in GitHub Desktop.
Save bobylito/58ae0759d04da5d7d933 to your computer and use it in GitHub Desktop.
Less with syntax higlighting
hl(){
highlight -O ansi $1 | less -r
}
  • Have highlight installed
  • run a shell (tested with bash)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment