obnomus@lemmy.ml to linuxmemes@lemmy.worldEnglish · 1 day agoNoicelemmy.mlimagemessage-square73linkfedilinkarrow-up1401arrow-down19
arrow-up1392arrow-down1imageNoicelemmy.mlobnomus@lemmy.ml to linuxmemes@lemmy.worldEnglish · 1 day agomessage-square73linkfedilink
minus-squareEphera@lemmy.mllinkfedilinkarrow-up28·1 day agoAlways amused me that sudo !! is actually more keypresses (at least on keyboards where typing ! requires holding Shift).
minus-squareprintf("%s", name);@piefed.blahaj.zonelinkfedilinkEnglisharrow-up52·1 day agoYou just blew my mind. sudo [space] [shift] !! [enter] (4+1+1+1+1+1) is one keypress longer than ↑ + home + sudo + space + enter (1+1+4+1+1). In your face, universe.
minus-squareLogi@lemmy.worldlinkfedilinkarrow-up10·15 hours agoIf you have an actual home key. If it’s ctrl+a or (IIRC, AFK) ctrl+← then we’re even. And if we track hand movements then pressing ! twice may be faster than moving to another key. But yeah, it’s not at all clear that sudo !! is faster like you’d expect it to be.
minus-squareAxolotl@feddit.itlinkfedilinkarrow-up11·23 hours agoBut it’s faster since your hand move less and you can keep shift pressed
minus-squareNilz@sopuli.xyzlinkfedilinkarrow-up11·1 day agoI use zsh with the sudo plugin. Double tap esc and your current or last command will be prefixed with sudo.
minus-squareprintf("%s", name);@piefed.blahaj.zonelinkfedilinkEnglisharrow-up8·1 day agoI don’t dabble in black magic. /j It’s actually pretty neat.
Always amused me that
sudo !!is actually more keypresses (at least on keyboards where typing!requires holding Shift).You just blew my mind.
sudo [space] [shift] !! [enter](4+1+1+1+1+1) is one keypress longer than↑ + home + sudo + space + enter(1+1+4+1+1). In your face, universe.If you have an actual home key. If it’s ctrl+a or (IIRC, AFK) ctrl+← then we’re even.
And if we track hand movements then pressing ! twice may be faster than moving to another key.
But yeah, it’s not at all clear that
sudo !!is faster like you’d expect it to be.But it’s faster since your hand move less and you can keep
shiftpressedI use zsh with the sudo plugin. Double tap
escand your current or last command will be prefixed with sudo.I don’t dabble in black magic. /j
It’s actually pretty neat.