[HN Gopher] Show HN: Rmt an alternative to rm with trash written...
___________________________________________________________________
Show HN: Rmt an alternative to rm with trash written in Rust
Author : Amine_Ztn
Score : 6 points
Date : 2022-10-11 22:11 UTC (49 minutes ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| sph wrote:
| Quote:
|
| > Launch CLI to restore or flush elements: `rmt trash_display` or
| `rmt td`
|
| > Flush all element from the trash: `rmt trash_flush`
|
| Those _need_ to be dash-style options. Because if someone runs a
| `rmt *` in a directory and there 's a trash_flush file inside, it
| will NOT do what one expects and will be destructive.
|
| This is why options are traditionally prefixed with dashes. (Yeah
| sure, you have the same problem if you have a file that starts
| with dash, I already hear someone point out.)
|
| Since you suggest to alias rm to rmt, your application needs to
| behave like rm and have a similar UI.
| lavela wrote:
| Don't actually alias it with 'rm' or you'll have a bad surprise
| waiting when you are on a different system and your muscle memory
| kicks in.
|
| I even had to disable rm for non-privileged users on my systems
| just to get used to use trash-cli.
___________________________________________________________________
(page generated 2022-10-11 23:00 UTC)