Update changelog

This commit is contained in:
Bruno Sutic 2017-06-04 00:32:53 +02:00
parent fe8390a578
commit 241f62089a
No known key found for this signature in database
GPG Key ID: CAFA7B1B2914ED81
2 changed files with 2 additions and 1 deletions

View File

@ -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"

View File

@ -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