trash-cli > rm for deleting files from the command line
— 1 min read
The rm
command can accidentally delete everything. There are alternatives and steps you can take, like aliasing rm, to protect yourself. trash is a safer way to remove files!
Install it using Homebrew:
brew install trash-cli