Skip to content

Releases: kaelzhang/shell-safe-rm

3.0.0

14 Dec 09:18
Compare
Choose a tag to compare

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 .gitignore file 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/config

2.0.0

03 Dec 03:37
Compare
Choose a tag to compare

2.0.0 fixed a lot of issues and introduced new features

  • FEATURE: supports ~/.safe-rm.conf
  • FEATURE: #37, supports options -d to 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 rm command
  • PATCH: #18, safe-rm now 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-rm compared to /bin/rm for primary usage.

An upgrade is recommended for all users.