SHARE
TWEET

Untitled

a guest Feb 17th, 2017 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ```bash
  2. sudo npm install jsontool -g
  3. sudo pip install pygments
  4. ```
  5. ```bash
  6.  curl $URL | json | pygmentize -l json
  7. ```
  8. ```bash
  9. sudo vim ~/.bashrc
  10. ```
  11. ```bash
  12. function jcurl() {
  13.     curl "$@" | json | pygmentize -l json
  14. }
  15. export -f jcurl
  16.  
  17. function tojson(){
  18.   json | pygmentize -l json
  19. }
  20. export -f tojson
  21. ```
  22. ```bash
  23. source ~/.bashrc
  24. jcurl $URL
  25. ```
RAW Paste Data
Top