I had no idea about $TMUX_PANE. Thanks, it worked perfectly.

On Sun, Feb 11, 2018 at 9:25 AM, Nicholas Marriott <
[email protected]> wrote:

> Use $TMUX_PANE.
>
>
> On Sun, Feb 11, 2018 at 08:47:50AM -0500, Rolf Campbell wrote:
> >    I run a script in one of several tmux windows and it needs to rename
> the
> >    window it's running in.A  Typically when this happens, I'm running
> some
> >    other program in some other window (in the same tmux-session).A  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 email to [email protected].
> >    For more options, visit https://groups.google.com/d/optout.
>

-- 
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