Last active
April 11, 2018 00:12
-
-
Save ZuZuD/aa94ed6ed831b69d85c8e08cec05316b to your computer and use it in GitHub Desktop.
Python pprint from bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias pprint="python -c \"import pprint, sys, json; pprint.pprint(json.loads(''.join([x.strip() for x in sys.stdin.readlines()]))) \"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment