Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to restore multiple tmux sessions independently and simultaneously #130

Open
vkuznet opened this issue Oct 20, 2023 · 0 comments
Open

Comments

@vkuznet
Copy link

vkuznet commented Oct 20, 2023

I'm interested to know if it is possible to restore multiple tmux session started independently from scripts, e.g.
let's say I have to scripts

  • file1 to start session bla and initialize some windows there
#!/bin/bash
tmux new-session -d -n abc -s bla
tmux neww      -t bla:2 -n xyz
tmux select-window -t bla:1
tmux -2 attach-session -t bla
  • file2 to start session foo and initialize some windows there
#!/bin/bash
tmux new-session -d -n abc -s foo
tmux neww      -t foo:2 -n xyz
tmux select-window -t foo:1
tmux -2 attach-session -t foo

If I'll use set -g @continuum-restore 'on', then it will restore whatever I run latest. Is it possible to restore them individually after I re-run file1 and file2 such that session bla will be restored independetly from session foo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant