1

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
1
  • 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. Commented Apr 7, 2025 at 12:47

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.