How to save tmux session to tmuxinator project?

user456584 picture user456584 · May 25, 2013 · Viewed 12.8k times · Source

I'm a tmux user and a fan of tmuxinator because it lets me get back to a baseline tmux session setup with ease.

However, I find that my setup changes on a regular basis, and editing my tmuxinator setup by hand can become tedious.

Is there a way to effectively tmuxinator save-session, such that my current tmux session gets saved into a tmuxinator project of choice with the panes, windows, and other details of the session automatically stored?

Answer

alpheus picture alpheus · Aug 8, 2013

I've been trying to figure out how to save sessions. One solution I am looking at can be found here:

Custom Scripts for saving Tmux sessions...

This link provides scripts that the author wrote for saving sessions at regular intervals, and saving a series of backups of those sessions.

I haven't personally tried the scripts myself, but they seem to be a potential issue for this situation.

(As for myself: I'm a little surprised that Tmux doesn't provide something like this as a built-in feature. With Screen I can understand: the code base is so messy, it's difficult to add anything new...)