Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In particular, can the tmux session data be written to a file, and reloaded on reboot?

I'm thinking of something similar to Vim's mksession command.

share|improve this question

2 Answers 2

Assuming you could save the output of all panes to a file after the fact, you still have to restore the state of all processes in those panes. There was something like that at one point but it still has quite a few limitations. There is no such built-in functionality in tmux. This isn't like Vim which just has to remember which files you opened, whether you saved your work or not, where the cursor was, the history of inputs, etc.

share|improve this answer
    
is this still the case? –  FutuToad Mar 27 at 15:47
    
Linux checkpoint-restore has advanced a bit in the past years, though I cannot confirm that it is seamless across the board. See the LWN articles. –  pilona Apr 8 at 2:05

You can write a script manually that recreates your desired tmux configuration. https://github.com/chicks-net/chicks-home/blob/master/bin/start_tmux is an example that has saved me a lot of time. I think that's easier to maintain than something automatically built like http://brainscraps.wikia.com/wiki/Resurrecting_tmux_Sessions_After_Reboot seems to do.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.