Created
March 10, 2020 23:09
-
-
Save soerface/8e44ebd495be72aee481d65c1003a015 to your computer and use it in GitHub Desktop.
jless
This file contains 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
# 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