@[email protected] to [email protected]English • 2 months agoFreedomlemm.eeimagemessage-square73fedilinkarrow-up1469
arrow-up1469imageFreedomlemm.ee@[email protected] to [email protected]English • 2 months agomessage-square73fedilink
minus-square@[email protected]linkfedilinkEnglish9•edit-22 months agoalias trash-put from trash-cli in both sudo and user. myrm() { trash-put "$@" } alias rm="myrm" This has saved my ass so many times. Especially when typing “rm * .png” instead of “rm *.png” Can restore the files using the cli or from system recycling bin. The alias to rm is probably not best. So getting use to using another name is probably best. But I’m never had a problem with it.
minus-square@[email protected]linkfedilink1•2 months agoOr just use snapshots. If you are into aliases make an alias for rm to make a snapshot before deleting something.
minus-square@[email protected]linkfedilink12•2 months agoThat feeling where rm is taking a while to return to the prompt
minus-square@[email protected]linkfedilinkEnglish4•2 months agoExactly. Ctrl+C and hope ls isn’t completely empty.
minus-square@[email protected]linkfedilinkEnglish1•2 months agoI’ve never ran into any issues from using rm but I like this idea and will be using it as I only see positives
minus-square@[email protected]linkfedilinkEnglish2•2 months agoDownsides can be inconsistent behavior. As with any alias it’s not meant to be anything but a replacement in your shell. Scripts/SSH etc. Also, you gotta remember to empty your trash. :)
alias trash-put from trash-cli in both sudo and user.
This has saved my ass so many times. Especially when typing “rm * .png” instead of “rm *.png”
Can restore the files using the cli or from system recycling bin.
The alias to rm is probably not best. So getting use to using another name is probably best. But I’m never had a problem with it.
Or just use snapshots. If you are into aliases make an alias for rm to make a snapshot before deleting something.
That feeling where rm is taking a while to return to the prompt
Exactly. Ctrl+C and hope ls isn’t completely empty.
I’ve never ran into any issues from using rm but I like this idea and will be using it as I only see positives
Downsides can be inconsistent behavior. As with any alias it’s not meant to be anything but a replacement in your shell. Scripts/SSH etc.
Also, you gotta remember to empty your trash. :)