Skip to content

Instantly share code, notes, and snippets.

@MikeJansen
Created January 2, 2023 16:58
Show Gist options
  • Save MikeJansen/bac12a68e0e4d57f3a844fa20c5dee0c to your computer and use it in GitHub Desktop.
Save MikeJansen/bac12a68e0e4d57f3a844fa20c5dee0c to your computer and use it in GitHub Desktop.
yq functions
# Pipe YAML or JSON, optionally query it, and display as colorized YAML in less
function y() { yq -C "$@" | less -R; }
function yj() { yq -C -p=j -o=y "$@" | less -R; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment