tmux-resurrect
tmux plugin that saves and restores sessions across reboots. without it, closing your terminal means losing your entire workspace layout.
keybindings (rebound from defaults):
M-s— save session (default wasprefix + C-s, rebound to avoid conflict with session switcher)M-r— restore session
config:
set -g @resurrect-save 'M-s'
set -g @resurrect-restore 'M-r'
set -g @resurrect-capture-pane-contents 'on'
set -g @resurrect-save-shell-history 'off'
saves: window layouts, pane splits, working directories, and (with the right config) running processes.