Share your code.
soft-rm is a small wrapper around
rm that does not remove files. It's like a recycle bin for the command line.
soft-rm file"soft-deletes" the given file.
soft-rm --restore filerestores the given file, if possible.
soft-rm --flush fileactually, irreversibly, for-real deletes a previously soft-deleted file.
soft-rm --restore-allrestores all soft-deleted files.
soft-rm --flush-allactually, irreversibly, for-real deletes all previously soft-deleted files.
You can also add
soft-rm --flush-all to your init scripts if you like.
Limitations (for now)
- does not work across file systems
- "trash" directory is not configurable
- does not support most of the
rmcli arguments (including useful stuff like