#!/usr/bin/env bash usage=$(tmux list-command -F "#{command_list_name} #{command_list_usage}" "$1") man tmux | awk -v usage="$usage" ' index($0, usage) > 0 { found=1 } found { print if ($0 == "") exit } '