Follow-up from “Dumbest Thing you have done distro-hopping?”.

Here’s mine - the laptop from which I’m typing right now has a broken touchpad that keeps jumping and clicking randomly, and does not work. Well, I can’t afford to fix it, but at the moment, I was so pissed off I punched the touchpad really hard, and the machine panicked with all the lights blinking. A few more revival abuses, and the machine was back to life, but since I was running a nixos-rebuild switch --upgrade in the background, I blew off my boot partition. I think I just broke the unbreakable distro.

  • palordrolap@kbin.social
    link
    fedilink
    arrow-up
    3
    ·
    11 months ago

    It’s not recommended to alias a command, especially a common one, to something that fundamentally changes the behaviour like this. The reason is that one day you might be on a different system - or a fresh install - that doesn’t have the alias in place.

    And suddenly files disappear without the now-expected prompt.

    By all means set up an entirely different or unused command name. rmi might be ok, but then again, you could miss the i and still be in hot water.

    The usual exception to this is aliasing commands like ls to include user preferences that only change output behaviour. On a different or fresh system, the worst that happens is the user doesn’t quite see what they’re expecting, but will see something close enough and no files go missing.