tmux-continuum
tmux-continuum copied to clipboard
How to restore multiple tmux sessions independently and simultaneously
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.