Skip to content

Instantly share code, notes, and snippets.

@parmus
Last active September 18, 2024 19:59
Show Gist options
  • Save parmus/60dbbd2683221d58152b900a790350f7 to your computer and use it in GitHub Desktop.
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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment