Fun fact: Stable diffusion generated this logo
Rmt is similar to the rm command, but it allows me to save the deleted elements in the trash. If you wish, you can restore the previously deleted elements of your choice (or delete them forever) with a cli.
Rmt is not stable yet, do not use it for critical usages for the moment
Download the binary depending on your configuration here: https://github.com/AmineZouitine/rmt.rs/releases
Then you just need to enter this command in your terminal:
tar -xf <downloaded_archive> rmt && sudo mv rmt /usr/local/bin
Pro tip (optional)
Add rmt as an alias instead of the rm command.
Delete an element (but it is saved in the trash don't worry)
rmt [OPTION]... [FILE|FOLDER]... Exemples: rmt text.txt rmt * -- -text.txt rmt folder test.txt *.sh
Launch CLI to restore or flush elements
Flush all element from the trash
Informations about the trash
You can find all the information in the file CONTRIBUTING.md. Hoping to see you soon in my pull request