Skip to content

Instantly share code, notes, and snippets.

@soerface
Created March 10, 2020 23:09
Show Gist options
  • Save soerface/8e44ebd495be72aee481d65c1003a015 to your computer and use it in GitHub Desktop.
Save soerface/8e44ebd495be72aee481d65c1003a015 to your computer and use it in GitHub Desktop.
jless
# Just put this in your ~/.zshrc or ~/.bashrc!
# Pretty format of json files. Usage: jless path/to/file.json
function jless {
python -mjson.tool "$1" | pygmentize -l json | less -Nr
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment