mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2025-09-02 12:47:04 +00:00
Update changelog
This commit is contained in:
@ -279,7 +279,7 @@ dump_shell_history() {
|
||||
}
|
||||
|
||||
remove_old_backups() {
|
||||
# remove backup files older than 30 days, but keep at least 5 copies of backup.
|
||||
# remove resurrect files older than 30 days, but keep at least 5 copies of backup.
|
||||
local -a files
|
||||
files=($(ls -t $(resurrect_dir)/${RESURRECT_FILE_PREFIX}_*.${RESURRECT_FILE_EXTENSION} | tail -n +6))
|
||||
[[ ${#files[@]} -eq 0 ]] || find "${files[@]}" -type f -mtime +30 -delete
|
||||
|
Reference in New Issue
Block a user