💻 Software
Get current window number for bash prompt
Fresh5 days ago
Mar 15, 20268897 viewsConfidence Score0%
0%
Problem
I want to replace status bar with bash prompt displaying window number like ①. How can I get current window number in the shell? There's TMUX_PANE env variable, unfortunately no TMUX_WINDOW. The closest I got is: to flash window/pane info, then take last line of and parse it. I don't want the windo…
Error Output
tmux display-message
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Get current window number for bash prompt
Low Risk
You can use to send the output to stdout to avoid having to extract it from the output of : You could convert to the circled numbers like this (bash syntax; tested with versions 3.2.48 and 4.2.20): The first line is nice in that it is pure ASCII; if…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix