Document how to disable autosave

This commit is contained in:
Bruno Sutic 2015-02-12 16:01:30 +01:00
parent 1588471ed0
commit 232c8df7f3
No known key found for this signature in database
GPG Key ID: 66D96E4F2F7EF26C
2 changed files with 17 additions and 3 deletions

View File

@ -7,3 +7,4 @@
- add a check for tmux version to the initializer script - add a check for tmux version to the initializer script
- when interval is set to '0' autosave is disabled - when interval is set to '0' autosave is disabled
- bugfix: helper files not loaded - bugfix: helper files not loaded
- update readme with the instructions how to disable auto saving

View File

@ -76,11 +76,24 @@ Most likely no. A regular save file is in the range of 5Kb. That said, it
would be good to clean out old save files from `~/.tmux/resurrect/` dir from would be good to clean out old save files from `~/.tmux/resurrect/` dir from
time to time. time to time.
### Configuration > How do I change the save interval to i.e. 1 hour?
- set the save interval to 60 minutes (the default is 15, the number is always in minutes) The interval is always measured in minutes. So setting the interval to `60`
(minutes) will do the trick. Put this in `.tmux.conf`:
set -g @resurrect-auto-save-interval '60' set -g @resurrect-auto-save-interval '60'
and then source `tmux.conf` by executing this command in the shell
`tmux source ~/.tmux.conf`.
> How do I stop automatic saving?
Just set the save interval to `0`. Put this in `.tmux.conf`
set -g @resurrect-auto-save-interval '0'
and then source `tmux.conf` by executing this command in the shell
`tmux source ~/.tmux.conf`.
### Other goodies ### Other goodies