nix/modules/home-manager/scripts/common/bin/yamldiff
2023-10-05 13:43:28 -05:00

9 lines
196 B
Bash
Executable file

#!/usr/bin/env bash
[ "$#" -lt 2 ] && echo "Need two filenames." && exit 1
f1="$1"; shift; echo "$f1" >&2
f2="$1"; shift; echo "$f2" >&2
nvim -d <(yq . "$f1" | jq -S .) <(yq . "$f2" | jq -S .)