0

When I run tmux new-window from a script outside of my current tmux session, how can I specify which session the new window should be associated with?

1

Though not very clearly documented, it turns out windows can be specified as session-name:window-number, so specifying tmux new-window -t SESSION: results in creating a new window in the session. The session name or default number may be used.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.