abobla@lemm.ee to linuxmemes@lemmy.world · 5か月前pro tiplemm.eeimagemessage-square118fedilinkarrow-up11.53Karrow-down17
arrow-up11.52Karrow-down1imagepro tiplemm.eeabobla@lemm.ee to linuxmemes@lemmy.world · 5か月前message-square118fedilink
minus-squareDrew Belloc@ani.sociallinkfedilinkEnglisharrow-up31·5か月前Fuck will always be my alias to run sudo with the last command
minus-squarehenfredemars@infosec.publinkfedilinkEnglisharrow-up29·5か月前There’s a project that automatically corrects common errors with your last command as well with the same name.
minus-squaredouble_quack@lemm.eelinkfedilinkEnglisharrow-up15·5か月前It sounds fun and “magic” but it is hella scary to blindly run some “fixed” command
minus-squarehenfredemars@infosec.publinkfedilinkEnglisharrow-up14·5か月前I believe it does take confirmation via the ENTER key.
minus-squarecactopuses@lemm.eelinkfedilinkarrow-up10·5か月前It does! It’s usually pretty good at figuring it ont to. Though I only use it with non-destructive commands
minus-squarekibiz0r@midwest.sociallinkfedilinkEnglisharrow-up11·5か月前Shorthand that works anywhere: sudo !!
minus-squareJustAnotherKay@lemmy.worldlinkfedilinkarrow-up7·5か月前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
minus-squarePsythik@lemm.eelinkfedilinkarrow-up2·5か月前“Fucking” would be funnier and more grammatically correct.
minus-squareanytimesoon@feddit.uklinkfedilinkarrow-up2·5か月前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
minus-squareOmega@sh.itjust.workslinkfedilinkarrow-up2·5か月前Probably with !! (!n will be the command corresponding to the number n in your history, !! is shorthand for the last command)
Fuck will always be my alias to run sudo with the last command
There’s a project that automatically corrects common errors with your last command as well with the same name.
It sounds fun and “magic” but it is hella scary to blindly run some “fixed” command
I believe it does take confirmation via the ENTER key.
It does! It’s usually pretty good at figuring it ont to. Though I only use it with non-destructive commands
Ok i loved it
Shorthand that works anywhere:
sudo !!
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
Yup I’m stealing that lol
“Fucking” would be funnier and more grammatically correct.
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
Probably with
!!
(!n
will be the command corresponding to the number n in your history,!!
is shorthand for the last command)