Re:Show HN: tmuxp – session manager for tmux
by hultner on Thursday March 23, 2017 @09:38AM
(#13939575)
I've been using tmux continuum for semi persistent sessions about 2 years now and been generally happy. There's good support for keeping stdout (pane contents) in between restarts and you can also keep a whitelist of applications allowed to be resumed throughout reboots.
https://github.com/tmux-plugins/tmux-continuum
As for nested sessions I usually bind ^B ^B to send-prefix which means it will call the nested session, if you keep this as a standard in all you tmux configs you'll always be able to nest by repeating ^B, and even if you haven't you can always do ^B :send-prefix
I've used tmux-continuum in conjunction with tmuxinator in order to easily keep sessions for different projects, however tmuxp should fill this purpose as well.
Re:Show HN: tmuxp – session manager for tmux
by monsieurbanana on Thursday March 23, 2017 @09:38AM
(#13939579)
How often do you restart your laptop?
Restarting is a pain, having to restore tmux and emacs and chrome and whatnot, but since I restart about once per month it's still acceptable.
Re:Show HN: tmuxp – session manager for tmux
by chatmasta on Thursday March 23, 2017 @09:54AM
(#13939705)
Well, I restart about once per month too. But that's not ideal. I would like to apply security updates as soon as they're available, but I always put it off because I know I'll have to restart and lose all session state.
Re:Show HN: tmuxp – session manager for tmux
by peternicky on Thursday March 23, 2017 @12:17PM
(#13941162)
I have the same problem and feel this is something we should not have so much trouble with in 2017. Any solutions?
My other problem is that when I restart my laptop I lose all local tmux sessions. It looks like this might be a solution via `tmuxp freeze`. Will this save bash history and stdout or only pane layouts?
I am also looking for a way to grep unified bash history across all hosts I use.
One idea I have to improve workflow / keep state across restarts is to vpn to a remote server and use my "main" terminal from there. When I need to run something locally I do it via mosh to local IP on vpn. This way local screen state is saved even across restarts (since server is up 24/7). However this is super convoluted and not ideal for many reasons.