Skip to content

Instantly share code, notes, and snippets.

@flrichar
Last active April 8, 2022 15:18
Show Gist options
  • Select an option

  • Save flrichar/7f6ebacfb4405988913e327d6ec5adc5 to your computer and use it in GitHub Desktop.

Select an option

Save flrichar/7f6ebacfb4405988913e327d6ec5adc5 to your computer and use it in GitHub Desktop.
jq and yq functions for bash
## pipe colorfied jq to less while keeping colors
jql () { jq -C . $1 | less -R ; }
## pipe colorfied yq to less, keep colors, convert json to yaml
yql () { yq -CP -oy $1 | -R ; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment