mirror of
https://github.com/tmux-plugins/tmux-continuum.git
synced 2024-12-22 07:28:47 +00:00
made deleting saves older than 7 days the default
This commit is contained in:
parent
f17fc076af
commit
0cb1c3462c
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user