Save your tmux workspace before shutting down and restore every window, pane, and working directory exactly as you left it.
Automatically restore vim or neovim editor sessions alongside your terminal layout after a reboot.
Use alongside tmux-continuum to save your environment periodically without remembering to do it manually.
Add custom programs to the restore list so your full development environment comes back on startup.
tmux is a terminal multiplexer: a program that lets you run multiple terminal sessions inside a single window, split your screen into panes, and keep sessions running even when you disconnect. tmux-resurrect is a plugin for tmux that solves one long-standing problem: when you restart your computer or close tmux, all your open sessions, window layouts, and working directories disappear. With tmux-resurrect installed, you can save your entire tmux environment with a keyboard shortcut (prefix + Ctrl-s) and restore it later (prefix + Ctrl-r). When you come back after a restart, your sessions, windows, pane layouts, and the working directory for each pane are all recovered exactly as you left them. No configuration is required for this basic functionality. By default, the plugin also restores a short list of common programs that may have been running in your panes, such as vim, emacs, htop, and mutt. Additional programs can be added to the restore list in configuration. Optionally, the plugin can restore vim and neovim editor sessions and the text content of pane buffers, though these features are off by default. The plugin can be installed through the Tmux Plugin Manager or by cloning the repository manually. It works on Linux, macOS, and Cygwin, and requires tmux 1.9 or later plus bash. A companion plugin called tmux-continuum handles automatic periodic saving so you do not have to remember to save manually. The project is MIT licensed.
← tmux-plugins on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.