Releases: kaelzhang/shell-safe-rm
Releases · kaelzhang/shell-safe-rm
3.0.0
3.0.0 introduces some key changes to safe-rm, including
- BREAKING Changes the default configuration file into
~/.safe-rm/config - FEATURE Supports to define user-specific protected rules to protect some important directories by adding a
.gitignorefile into~/.safe-rm/.gitignore(the default location) - Also redesign the configuration keys for advanced usage
An upgrade is recommended for all users.
Upgrade Guide from 2.x to 3.0.0
Just move your former ~/.safe-rm.conf (If you have)
mkdir ~/.safe-rm
mv ~/.safe-rm.conf ~/.safe-rm/config2.0.0
2.0.0 fixed a lot of issues and introduced new features
- FEATURE: supports
~/.safe-rm.conf - FEATURE: #37, supports options
-dto check and only remove an empty directory. - FEATURE: #34, use AppleScript as much as possible to enable "put-back" on MacOS.
- FEATURE: #24, supports to permanently delete files that are already in the trash. (Disabled by default)
- PATCH: #22, return code mismatching with the original
rmcommand - PATCH: #18,
safe-rmnow uses the same rule for duplicated file names in the system Trash. - PATCH: #11, now could properly remove symbolic links
- Uses nodejs to test the behavior of
safe-rmcompared to/bin/rmfor primary usage.
An upgrade is recommended for all users.