Move files and folders to the trash
Requires macOS 13 or later.
Since macOS 15, there is now a built-in trash command. The benefit of the binary here is that it has a --interactive flag and it fixes “Put Back” being broken.
brew install macos-trash
mint install sindresorhus/macos-trash
Download the binary and put it in /usr/local/bin.
trash [--help | -h] [--version | -v] [--interactive | -i] <path> […]
rm aliasIn your .bashrc or similar:
alias rm='trash'
Works as a drop-in replacement. All rm flags are ignored.
./build
Do Not Disturb feature