From 232c8df7f33d23a0fce5c5d4c553a605696a75a5 Mon Sep 17 00:00:00 2001 From: Bruno Sutic Date: Thu, 12 Feb 2015 16:01:30 +0100 Subject: [PATCH] Document how to disable autosave --- CHANGELOG.md | 1 + README.md | 19 ++++++++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a5fc788..9dabcaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,3 +7,4 @@ - add a check for tmux version to the initializer script - when interval is set to '0' autosave is disabled - bugfix: helper files not loaded +- update readme with the instructions how to disable auto saving diff --git a/README.md b/README.md index c2e321b..7b2b40a 100644 --- a/README.md +++ b/README.md @@ -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 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