#Km91#@sh.itjust.works to linuxmemes@lemmy.world · 1 day agoFeels more polite for sure.sh.itjust.worksimagemessage-square92linkfedilinkarrow-up11.03Karrow-down18
arrow-up11.02Karrow-down1imageFeels more polite for sure.sh.itjust.works#Km91#@sh.itjust.works to linuxmemes@lemmy.world · 1 day agomessage-square92linkfedilink
minus-squareAlaknár@sopuli.xyzlinkfedilinkarrow-up6·14 hours 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-up1·6 hours agoalias please='sudo $(fc -ln -1)'
minus-squareandallthat@lemmy.worldlinkfedilinkarrow-up1·edit-22 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. EDIT: @Alaknar@sopuli.xyz I just checked that !! works too for me, apparently because of this: https://github.com/oh-my-fish/plugin-bang-bang
minus-squareKorYi@lemmy.mllinkfedilinkarrow-up2·12 hours 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.
EDIT: @Alaknar@sopuli.xyz I just checked that !! works too for me, apparently because of this: https://github.com/oh-my-fish/plugin-bang-bang
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 )=