fish/functions/pj.fish @ 46c8ae0df6cc

More
author Steve Losh <steve@stevelosh.com>
date Thu, 30 Jan 2025 09:44:14 -0500
parents 6c4c335faf47
children (none)
function pj -d "Prettify JSON"
    if test "$argv[1]" = "-C"
        # no color
        python3 -m json.tool
    else
        python3 -m json.tool | pygmentize -l json
    end
end