#!/bin/sh in=$(mktemp) cat > "$in" fzf --preview-window='up:99%' --preview "jq --color-output -r {q} $in $1" rm -f "$in"