mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-07 00:05:10 +01:00
jl function to list a json file in pretty colours and indentation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user