Get the latest tech news
Show HN: rm-safely – A shell alias that moves files to trash instead of deleting
'rm' safely – a safety net for the risky rm. Contribute to zdk/rm-safely development by creating an account on GitHub.
rm-safely is a safety shell alias to prevent the accidental deletion of important files, especially, default MacOS rm This is just a handy shell wrapping function along with option to directly invoke/bin/rm with--rm. But, with the alias, it can prevent you in case of autocomplete from shell history that left of with random rm -rf
Or read this on Hacker News