Skip to content

Instantly share code, notes, and snippets.

@kbohinski
Last active January 19, 2018 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kbohinski/5f8a8a717dc3a30a360429aeac445a6f to your computer and use it in GitHub Desktop.
Save kbohinski/5f8a8a717dc3a30a360429aeac445a6f to your computer and use it in GitHub Desktop.
# Making this a gist so I don't waste 20 minutes trying to find it again.... :)
#
# Setup:
# npm install -g json && pip install pygments
# Add source ~/path/to/jsonpp.sh to your shell startup/profile files.
#
# Credit:
# http://benw.me/posts/colourized-pretty-printed-json-with-curl/
#
# Usage:
# curl -s -L http://t.co/tYTq5Pu | jsonpp
alias jsonpp="json | pygmentize -l json"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment