TL;DR: Use tmuxp so that you don’t have to re-create the same sessions, windows and panes every time you restart your machine.
Previously I was using tmux-resurrect (persists tmux environment across system restarts) and tmux-continuum (continuous saving of tmux environment), but these lack finer control as to which sessions to restore.
pip install --user tmuxp
❯ tmuxp --version tmuxp 1.13.0, libtmux 0.14.0
- Create the following in
session_name: main windows: - window_name: zsh panes: - shell_command: - neofetch - echo hello - window_name: nvim panes: - nvim
tmuxp load main
When I restart my machine, I do
tmuxp load main misc nvim to restart all my sessions.