fish/functions/pj.fish @ 890e2d48b6f7

More
author Steve Losh <steve@stevelosh.com>
date Wed, 22 Oct 2025 15:28:13 -0400
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