I want to set style options for a session (all windows in that session), but not globally (i.e. I don't want to change settings for other sessions).
If I use
set window-status-current-style bg='#000077','fg='white'
then it only sets for the current window, not all windows in the session.
If I use
set -g window-status-current-style bg='#000077','fg='white'
then it sets for all windows in all sessions.
How do I do 'all windows in the current session only'?
asked Apr 7, 2025 at 9:31
John Allsup
1,29210 silver badges11 bronze badges
-
One workaround I've found so far: tmux list-windows | cut -f1 -d: | while read s; do tmux set -t "$s" window-status-current-style fg='#ffffff',bg='#770000' done But this is a little ugly.John Allsup– John Allsup2025年04月07日 12:47:02 +00:00Commented Apr 7, 2025 at 12:47