1
0
mirror of https://codeberg.org/diginaut/dotfiles.git synced 2026-02-04 13:30:26 +01:00

jl function to list a json file in pretty colours and indentation

This commit is contained in:
2019-12-16 13:47:01 +01:00
parent 3eb867c228
commit dbee464745

View File

@@ -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