• Drew Belloc@ani.socialEnglish
    31·
    5 months ago

    Fuck will always be my alias to run sudo with the last command

    • henfredemars@infosec.pubEnglish
      29·
      5 months ago

      There’s a project that automatically corrects common errors with your last command as well with the same name.

      • double_quack@lemm.eeEnglish
        15·
        5 months ago

        It sounds fun and “magic” but it is hella scary to blindly run some “fixed” command

          • cactopuses@lemm.ee
            10·
            5 months ago

            It does! It’s usually pretty good at figuring it ont to. Though I only use it with non-destructive commands

    • JustAnotherKay@lemmy.world
      7·
      5 months ago

      Between the fuck utility and this alias idea, when I set up my next box I’m absolutely aliasing “fuck off” for sudo the last command and “please” for sudo itself

    • Psythik@lemm.ee
      2·
      5 months ago

      “Fucking” would be funnier and more grammatically correct.

    • anytimesoon@feddit.uk
      2·
      5 months ago

      How do you alias the last command? My aliases are all hard coded. I had no idea you could send a variable to an alias

      • Omega@sh.itjust.works
        2·
        5 months ago

        Probably with !! (!n will be the command corresponding to the number n in your history, !! is shorthand for the last command)