tmux-plugins / tmux-resurrect

Persists tmux environment across system restarts.
MIT License
11.4k stars 424 forks source link

Is it possible to run a command after resurrecting? #213

Open TxHawks opened 7 years ago

TxHawks commented 7 years ago

Is there an option to automatically run a command after resurrecting a session? Something is a similar fashion to how set -g @resurrect-processes works, but run a command instead of restoring a process.

I have tmux automatically started on boot, and since there is no way to attach a stored session that isn't resurrected (there isn't, right?), it starts a new session, and then tmux-continuum automatically resurrects the stored session. I'd like to kill the automatically-started session once the stored session is resurrected.

aliyilmazz commented 6 years ago

bump

bruno- commented 6 years ago

Hey, this is currently not possible.

ashb commented 6 years ago

267 would probably help with this.