abobla@lemm.ee to linuxmemes@lemmy.world · 6 days agopro tiplemm.eeimagemessage-square117fedilinkarrow-up11.46Karrow-down17
arrow-up11.46Karrow-down1imagepro tiplemm.eeabobla@lemm.ee to linuxmemes@lemmy.world · 6 days agomessage-square117fedilink
minus-squaredrewbelloc@ani.sociallinkfedilinkEnglisharrow-up31·6 days agoFuck will always be my alias to run sudo with the last command
minus-squarehenfredemars@infosec.publinkfedilinkEnglisharrow-up27·6 days agoThere’s a project that automatically corrects common errors with your last command as well with the same name.
minus-squaredouble_quack@lemm.eelinkfedilinkEnglisharrow-up13·6 days agoIt sounds fun and “magic” but it is hella scary to blindly run some “fixed” command
minus-squarehenfredemars@infosec.publinkfedilinkEnglisharrow-up12·6 days agoI believe it does take confirmation via the ENTER key.
minus-squarecactopuses@lemm.eelinkfedilinkarrow-up9·6 days agoIt does! It’s usually pretty good at figuring it ont to. Though I only use it with non-destructive commands
minus-squarekibiz0r@midwest.sociallinkfedilinkEnglisharrow-up10·6 days agoShorthand that works anywhere: sudo !!
minus-squareJustAnotherKay@lemmy.worldlinkfedilinkarrow-up7·6 days agoBetween 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 days ago“Fucking” would be funnier and more grammatically correct.
minus-squareanytimesoon@feddit.uklinkfedilinkarrow-up2·5 days agoHow 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 days agoProbably 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
“Fucking” would be funnier and more grammatically correct.
Yup I’m stealing that lol
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)