Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```bash
- sudo npm install jsontool -g
- sudo pip install pygments
- ```
- ```bash
- curl $URL | json | pygmentize -l json
- ```
- ```bash
- sudo vim ~/.bashrc
- ```
- ```bash
- function jcurl() {
- curl "$@" | json | pygmentize -l json
- }
- export -f jcurl
- function tojson(){
- json | pygmentize -l json
- }
- export -f tojson
- ```
- ```bash
- source ~/.bashrc
- jcurl $URL
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement