use XDG_DATA_HOME for resurrect-dir path
|1 month ago|
|docs||5 months ago|
|lib||6 years ago|
|save_command_strategies||3 months ago|
|scripts||1 month ago|
|strategies||3 years ago|
|tests||5 years ago|
|video||8 years ago|
|.gitattributes||7 years ago|
|.gitignore||8 years ago|
|.gitmodules||8 years ago|
|.travis.yml||6 years ago|
|CHANGELOG.md||8 months ago|
|CONTRIBUTING.md||8 years ago|
|LICENSE.md||8 years ago|
|README.md||8 months ago|
|resurrect.tmux||4 years ago|
|run_tests||8 years ago|
tmux environment after system restart.
Tmux is great, except when you have to restart the computer. You lose all the running programs, working directories, pane layouts etc. There are helpful management tools out there, but they require initial configuration and continuous updates as your workflow evolves or you start new projects.
tmux-resurrect saves all the little details from your tmux environment so it
can be completely restored after a system restart (or when you feel like it).
No configuration is required. You should feel like you never quit tmux.
It even (optionally) restores vim and neovim sessions!
Automatic restoring and continuous saving of tmux env is also possible with tmux-continuum plugin.
prefix + Ctrl-s- save
prefix + Ctrl-r- restore
This plugin goes to great lengths to save and restore all the details from your
tmux environment. Here's what's been taken care of:
- all sessions, windows, panes and their order
- current working directory for each pane
- exact pane layouts within windows (even when zoomed)
- active and alternative session
- active and alternative window for each session
- windows with focus
- active pane for each window
- "grouped sessions" (useful feature when using tmux with multiple monitors)
- programs running within a pane! More details in the restoring programs doc.
Requirements / dependencies:
tmux 1.9 or higher,
Tested and working on Linux, OSX and Cygwin.
tmux-resurrect is idempotent! It will not try to restore panes or windows that
The single exception to this is when tmux is started with only 1 pane in order to restore previous tmux env. Only in this case will this single pane be overwritten.
Installation with Tmux Plugin Manager (recommended)
Add plugin to the list of TPM plugins in
set -g @plugin 'tmux-plugins/tmux-resurrect'
prefix + I to fetch the plugin and source it. You should now be able to
use the plugin.
Clone the repo:
$ git clone https://github.com/tmux-plugins/tmux-resurrect ~/clone/path
Add this line to the bottom of
Reload TMUX environment with:
$ tmux source-file ~/.tmux.conf.
You should now be able to use the plugin.
- Changing the default key bindings.
- Setting up hooks on save & restore.
- Only a conservative list of programs is restored by default:
vi vim nvim emacs man less more tail top htop irssi weechat mutt.
Restoring programs doc explains how to restore additional programs.
- Change a directory where
tmux-resurrectsaves tmux environment.
- Restoring vim and neovim sessions is nice if you're a vim/neovim user.
- Restoring pane contents feature.
- tmux-copycat - a plugin for regex searches in tmux and fast match selection
- tmux-yank - enables copying highlighted text to system clipboard
- tmux-open - a plugin for quickly opening highlighted file or a url
- tmux-continuum - automatic restoring and continuous saving of tmux env
Reporting bugs and contributing
Both contributing and bug reports are welcome. Please check out contributing guidelines.