Skip to content

Instantly share code, notes, and snippets.

@uchida
Created April 9, 2013 11:02
Show Gist options
  • Save uchida/5344848 to your computer and use it in GitHub Desktop.
Save uchida/5344848 to your computer and use it in GitHub Desktop.
pygmentize LESSCOLORIZER
#!/usr/bin/env bash
if [ "$?" -eq "0" ]; then
pygmentize -g -O "style=native,encoding=$(nkf -g $1)" -f console256 $1 | nkf -w
else
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment