Created
August 23, 2017 12:47
-
-
Save lovubuntu/a5c711a72a26ba6468ef0e89f7a2a5f9 to your computer and use it in GitHub Desktop.
colorize and pretty print json in terminal
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
**Install Pygments** | |
`pip install pygments` | |
** Create the following function in bashrc ** | |
``` | |
function jcurl() { | |
curl "$@" | json | pygmentize -l json | |
} | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://benw.me/posts/colourized-pretty-printed-json-with-curl/