abobla@lemm.ee to linuxmemes@lemmy.world · 5 miesięcy temupro tiplemm.eeimagemessage-square118fedilinkarrow-up11.52Karrow-down17
arrow-up11.51Karrow-down1imagepro tiplemm.eeabobla@lemm.ee to linuxmemes@lemmy.world · 5 miesięcy temumessage-square118fedilink
minus-squareDrew Belloc@ani.sociallinkfedilinkEnglisharrow-up31·5 miesięcy temuFuck will always be my alias to run sudo with the last command
minus-squarehenfredemars@infosec.publinkfedilinkEnglisharrow-up29·5 miesięcy temuThere’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 miesięcy temuIt sounds fun and “magic” but it is hella scary to blindly run some “fixed” command
minus-squarehenfredemars@infosec.publinkfedilinkEnglisharrow-up14·5 miesięcy temuI believe it does take confirmation via the ENTER key.
minus-squarecactopuses@lemm.eelinkfedilinkarrow-up10·5 miesięcy temuIt 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 miesięcy temuShorthand that works anywhere: sudo !!
minus-squareJustAnotherKay@lemmy.worldlinkfedilinkarrow-up7·5 miesięcy temuBetween 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-squareA_Union_of_Kobolds@lemmy.worldlinkfedilinkarrow-up4·5 miesięcy temuYup I’m stealing that lol
minus-squarePsythik@lemm.eelinkfedilinkarrow-up2·5 miesięcy temu“Fucking” would be funnier and more grammatically correct.
minus-squareanytimesoon@feddit.uklinkfedilinkarrow-up2·5 miesięcy temuHow 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 miesięcy temuProbably 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)