#Km91#@sh.itjust.works to linuxmemes@lemmy.world · 2 days agoFeels more polite for sure.sh.itjust.worksimagemessage-square95fedilinkarrow-up1959arrow-down111
arrow-up1948arrow-down1imageFeels more polite for sure.sh.itjust.works#Km91#@sh.itjust.works to linuxmemes@lemmy.world · 2 days agomessage-square95fedilink
minus-squareAlaknár@sopuli.xyzlinkfedilinkarrow-up7·1 day agoI always preferred the version where please="sudo !!", but I recently tried setting it up and couldn’t get it to work on fish, sadly.
minus-square6️⃣9️⃣4️⃣2️⃣0️⃣@lemmy.worldlinkfedilinkEnglisharrow-up2·20 hours agoalias please='sudo $(fc -ln -1)'
minus-squareandallthat@lemmy.worldlinkfedilinkarrow-up1·21 hours agoI’m a new windows emigrant, so I don’t have that muscle memory… so I am getting used more easily to using fish’s ALT+S to sudo the previous command
minus-squareKorYi@lemmy.mllinkfedilinkarrow-up2·1 day agoI remember setting this up with zsh and it didn’t work either. IIRC I had to use history to access the last command but it failed in some cases so I stopped using it altogether )=
I always preferred the version where
please="sudo !!", but I recently tried setting it up and couldn’t get it to work on fish, sadly.I’m a new windows emigrant, so I don’t have that muscle memory… so I am getting used more easily to using fish’s ALT+S to sudo the previous command
I remember setting this up with zsh and it didn’t work either. IIRC I had to use history to access the last command but it failed in some cases so I stopped using it altogether )=