1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 22:55:10 +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