bin: add cj to display prettified json

This commit is contained in:
xerus2000 2021-01-23 20:23:40 +01:00
parent db7fb3a68d
commit 61a15f85bb
1 changed files with 2 additions and 0 deletions

2
.local/bin/scripts/cj Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
cat "$@" | while read -r line; do echo -n "$line" | python -m json.tool 2>/dev/null; done | bat --language json --style numbers