#!/bin/zsh
tmux list-panes -F "#{pane_id} #{pane_height}" | while read pane height; do if [[ $pane == $TMUX_PANE ]]; then print $height; fi; done