aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/tmux-pane-idx
diff options
context:
space:
mode:
Diffstat (limited to 'bin/tmux-pane-idx')
-rwxr-xr-xbin/tmux-pane-idx4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/tmux-pane-idx b/bin/tmux-pane-idx
new file mode 100755
index 0000000..7da534f
--- /dev/null
+++ b/bin/tmux-pane-idx
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+# Prints the tmux pane index.
+tmux display -pt "${TMUX_PANE:?}" '#{pane_index}'