fish/functions/pj.fish @ 4ffd09c459f6

More
author Steve Losh <steve@stevelosh.com>
date Thu, 28 Aug 2025 15:30:29 -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