I run a script in one of several tmux windows and it needs to rename the
window it's running in.  Typically when this happens, I'm running some
other program in some other window (in the same tmux-session).  If I run
"tmux rename-window", it renames the window I'm typing into (not the window
the script is running in).

Try this:
Open a new tmux session and run:

tmux new-window; sleep 3; tmux rename-window "NEW-NAME"

This script is trying to rename window #0 (the one it's running in), but
ends up renaming window #1 (the one that you happen to be typing in).

Is there any way to rename the window a script is running in regardless of
which window is being displayed?

I tried this on "tmux 2.3" and also a recent clone from github with the
same results.

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to