made deleting saves older than 7 days the default

This commit is contained in:
michael_coleman 2015-12-03 05:18:27 +13:00
parent f17fc076af
commit 0cb1c3462c
2 changed files with 3 additions and 3 deletions

View File

@ -49,8 +49,8 @@ main() {
if supported_tmux_version_ok && auto_save_not_disabled && enough_time_since_last_run_passed; then
fetch_and_run_tmux_resurrect_save_script
# if user has enabled @continuum-delete-old-saves-option 'on'
if [ -n $(get_tmux_option "$delete_old_saves_option" "") ]
local keeping_old_saves=$(get_tmux_option "$keep_old_saves_option" "")
if [ -z "$keeping_old_saves" ]
then
delete_old_saves
fi

View File

@ -6,7 +6,7 @@ resurrect_restore_path_option="@resurrect-restore-script-path"
auto_save_interval_option="@continuum-save-interval"
auto_save_interval_default="15"
delete_old_saves_option="@continuum-delete-old-saves-option"
keep_old_saves_option="@continuum-keep-old-saves-option"
# time when the tmux environment was last saved (unix timestamp)
last_auto_save_option="@continuum-save-last-timestamp"