From dbee4647451e0fa294f6dd1a6b313caaf60d1200 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Mon, 16 Dec 2019 13:47:01 +0100 Subject: [PATCH] jl function to list a json file in pretty colours and indentation --- .config/fish/config.fish | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 2c257b9..e0ec6af 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -127,3 +127,8 @@ function rgvim vim "+/"(to_lower $argv) $choice end end + +function jl + # Pretty print the json file used as argument, and feed it in colour to less + jq -C --indent 2 . $argv | less -R +end