abobla@lemm.ee to linuxmemes@lemmy.world · 6 个月前pro tiplemm.eeimagemessage-square118linkfedilinkarrow-up11.52Karrow-down17
arrow-up11.52Karrow-down1imagepro tiplemm.eeabobla@lemm.ee to linuxmemes@lemmy.world · 6 个月前message-square118linkfedilink
minus-squareDrew Belloc@ani.sociallinkfedilinkEnglisharrow-up31·6 个月前Fuck will always be my alias to run sudo with the last command
minus-squarehenfredemars@infosec.publinkfedilinkEnglisharrow-up29·6 个月前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·6 个月前It sounds fun and “magic” but it is hella scary to blindly run some “fixed” command
minus-squarehenfredemars@infosec.publinkfedilinkEnglisharrow-up14·6 个月前I believe it does take confirmation via the ENTER key.
minus-squarecactopuses@lemm.eelinkfedilinkarrow-up10·6 个月前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·6 个月前Shorthand that works anywhere: sudo !!
minus-squareJustAnotherKay@lemmy.worldlinkfedilinkarrow-up7·6 个月前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·6 个月前“Fucking” would be funnier and more grammatically correct.
minus-squareanytimesoon@feddit.uklinkfedilinkarrow-up2·6 个月前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·6 个月前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)