diff --git a/README.md b/README.md index 9963e55..2138310 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ Optional: - [restoring vim and neovim sessions](docs/restoring_vim_and_neovim_sessions.md) - [restoring pane contents](docs/restoring_pane_contents.md) +- [restoring a previously saved environment](docs/restoring_previously_saved_environment.md) Requirements / dependencies: `tmux 1.9` or higher, `bash`. diff --git a/docs/restoring_previously_saved_environment.md b/docs/restoring_previously_saved_environment.md new file mode 100644 index 0000000..caee1d8 --- /dev/null +++ b/docs/restoring_previously_saved_environment.md @@ -0,0 +1,13 @@ +# Restoring previously saved environment + +None of the previous saves are deleted (unless you explicitly do that). All save +files are kept in `~/.tmux/resurrect/` directory.
+Here are the steps to restore to a previous point in time: + +- make sure you start this with a "fresh" tmux instance +- `$ cd ~/.tmux/resurrect/` +- locate the save file you'd like to use for restore (file names have a timestamp) +- symlink the `last` file to the desired save file: `$ ln -sf last` +- do a restore with `tmux-resurrect` key: `prefix + Ctrl-r` + +You should now be restored to the time when `` save happened.