bin: add cj to display prettified json
This commit is contained in:
parent
db7fb3a68d
commit
61a15f85bb
1 changed files with 2 additions and 0 deletions
2
.local/bin/scripts/cj
Executable file
2
.local/bin/scripts/cj
Executable 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
|
Loading…
Add table
Reference in a new issue