mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2024-12-25 00:28:49 +00:00
Update changelog
This commit is contained in:
parent
fe8390a578
commit
241f62089a
@ -21,6 +21,7 @@
|
||||
- do not create another resurrect file if there are no changes (credit @vburdo)
|
||||
- allow using '$HOSTNAME' in @resurrect-dir
|
||||
- add zsh history saving and restoring
|
||||
- delete resurrect files older than 30 days, but keep at least 5 files
|
||||
|
||||
### v2.4.0, 2015-02-23
|
||||
- add "tmux-test"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user