From 61a15f85bb7d928586bf11f22403d0e7fc57821a Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Sat, 23 Jan 2021 20:23:40 +0100 Subject: [PATCH] bin: add cj to display prettified json --- .local/bin/scripts/cj | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 .local/bin/scripts/cj diff --git a/.local/bin/scripts/cj b/.local/bin/scripts/cj new file mode 100755 index 0000000..4a28440 --- /dev/null +++ b/.local/bin/scripts/cj @@ -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