Skip to content

Instantly share code, notes, and snippets.

@lovubuntu
Created August 23, 2017 12:47
Show Gist options
  • Select an option

  • Save lovubuntu/a5c711a72a26ba6468ef0e89f7a2a5f9 to your computer and use it in GitHub Desktop.

Select an option

Save lovubuntu/a5c711a72a26ba6468ef0e89f7a2a5f9 to your computer and use it in GitHub Desktop.
colorize and pretty print json in terminal
**Install Pygments**
`pip install pygments`
** Create the following function in bashrc **
```
function jcurl() {
curl "$@" | json | pygmentize -l json
}
```
@lovubuntu

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment