Skip to content

Instantly share code, notes, and snippets.

@rtt
Last active December 14, 2015 20:29
Show Gist options
  • Select an option

  • Save rtt/5144366 to your computer and use it in GitHub Desktop.

Select an option

Save rtt/5144366 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
sudo pip install pygments simplejson
echo "alias ppjson='python -c \"import simplejson; import sys; print simplejson.dumps(simplejson.loads(sys.stdin.read()), indent=4)\" | pygmentize -f console -l js'" >> ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment