I have a system on a remote server that maintains context and tmux sessions since I frequently lose connection on my laptop due to workflow.
The current script restores a tmux session on connection, or creates a new one if there are no currently detached sessions. This works great, however the downfall is if I need to quickly bring up a new session on the server, I first have to connect
n times to attach all of the recently detached sessions.
I'd like to somehow send information to the server when connecting that says "open this one in a new session, regardless of existing sessions".
Is it possible to send data to a remote host, such that the bashrc file can interpret it?