😎 Safe-rm: A drop-in and much safer replacement of bash rm with nearly full functionalities and options of the rm command! Safe-rm will act exactly the same as the original rm command.
-
Updated
Mar 2, 2026 - Shell
😎 Safe-rm: A drop-in and much safer replacement of bash rm with nearly full functionalities and options of the rm command! Safe-rm will act exactly the same as the original rm command.
'rm' safely – a safety net for rm
A safer rm alternative that moves files and directories to a trash bin instead of permanently deleting them. Simplifies file recovery with easy installation and an option to empty the trash.
AI deleted my files? ai-trash intercepts rm from Claude Code, Cursor, Copilot, Codex and others — moves files to recoverable trash instead of permanent deletion. macOS, Linux, Windows.
Move the file to the system recycle bin
Role to tweak user profile using bashrc and vimrc.
Add a description, image, and links to the safe-rm topic page so that developers can more easily learn about it.
To associate your repository with the safe-rm topic, visit your repo's landing page and select "manage topics."