It can’t hurt to share some of you current helpers. Either someone else might get inspired by or in some cases you get suggestions how to make it better. Bash, Zsh, Fish or whatever shell script, command or alias (or abbreviation) you have, share here. Always fun to do so! I share mine in the comments, just like everybody else.

  • thingsiplay@lemmy.mlOP
    link
    fedilink
    arrow-up
    1
    ·
    35 minutes ago

    I totally agree, its a little bit dangerous. And understand why you add the safety net. My logic is, if you never take off the “training wheels”, you will never get a feeling how dangerous the commands are. I mean you are used to the safety net and your brain doesn’t have the same precautions and alarm bells active, as if there was none. And when you are on a machine without those, then you might quickly end up in an issue caused by muscle memory.

    That’s my whole logic behind it, why I didn’t do any alias to the rm command in example, even though I totally get and understand your point to be more careful. In fact, I’m so afraid of the command, that I sometimes just open up the GUI filemanager to delete files or folders, as I feel its more secure.

    BTW there is also a tool called trash-cli, which “deletes” (moves) files to the trash bin instead deleting them completely. Similar to how its done on the GUI. My original intention was to alias it to rm, but after thinking this through decided against it with given reasons.