fish/functions/pj.fish @ 87ff0514c83b

More
author Steve Losh <steve@stevelosh.com>
date Wed, 27 Aug 2025 16:17:11 -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