Remix.run Logo
jiehong 6 hours ago

Oh! Then perhaps the long press required for the iPhone’s action button to trigger is a Molly guard!

Also, perhaps `rm` should be molly guarded to move things to the trash on all systems by default, and delete only if forced to by a flag.

Note: I’d have expected Molly to be a cat, because they tend to be pretty good at disrupting things in my experience.

yjftsjthsd-h 4 hours ago | parent | next [-]

> Also, perhaps `rm` should be molly guarded to move things to the trash on all systems by default, and delete only if forced to by a flag.

Not all systems, but some (RHEL, I think?) default alias rm='rm -i', yes

fragmede 3 hours ago | parent [-]

disk space is cheap these days alias to mv to trash for an extra layer of protection.

3 hours ago | parent | prev | next [-]
[deleted]
Modified3019 5 hours ago | parent | prev | next [-]

Seeing long presses implemented for those intermittent and irreversible actions in games is something I‘ve always appreciated. I often end up making errant inputs, especially on keyboards.

A guard I often make for myself is removing/disabling the delete key on my keyboard, and setting FN+Backspace to Delete with whatever control software is involved. I often then repurpose the delete key location to F2, which is typically used to “Edit” a spreadsheet cell or file name.

denkmoon 5 hours ago | parent | prev [-]

rm has mollyguarding, that's why every invocation of rm you see on the internet is followed by -f

yjftsjthsd-h 4 hours ago | parent [-]

I think that may be a combination of (IMHO unfortunate) factors:

* Yes, on some systems rm is aliased to rm -i by default.

* Some scripts will use rm -f because normal rm returns an error if the target already doesn't exist but -f doesn't care.

* Finally, sometimes files are just ... I think it's being marked read-only that does it? I've hit this while trying to rm a git checkout; you actually do need to add -f sometimes to succeed. So if you just add -f then it'll always work.