#!/bin/bash # Validate YML with pretty print output yml-lint() { ruby -e "require 'yaml';require'JSON';puts JSON.pretty_generate(JSON.parse(YAML.load_file(\"$@\").to_json))"; }