#!/bin/bash # Prints the tmux pane index. tmux display -pt "${TMUX_PANE:?}" '#{pane_index}'