Skip to content

Instantly share code, notes, and snippets.

@parmus
Last active July 30, 2025 17:26
Show Gist options
  • Select an option

  • Save parmus/60dbbd2683221d58152b900a790350f7 to your computer and use it in GitHub Desktop.

Select an option

Save parmus/60dbbd2683221d58152b900a790350f7 to your computer and use it in GitHub Desktop.
YAML syntax highlighting in less using yq
# YAML syntax highlight for the terminal. Just pipe YAML through it.
alias yc='yq -C eval-all'
# Less with YAML syntax highlighting
alias yless='yq -C eval-all | less -R'
@seanmorton
Copy link

Sick!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment