fish/functions/pj.fish @ 69edbcc7ba7b default tip

More
author Steve Losh <steve@stevelosh.com>
date Tue, 25 Mar 2025 14:16:24 -0400 (10 days ago)
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