KillDash9@programming.dev to linuxmemes@lemmy.world · 4 months agoI can't like the fishprogramming.devimagemessage-square185linkfedilinkarrow-up1579arrow-down128
arrow-up1551arrow-down1imageI can't like the fishprogramming.devKillDash9@programming.dev to linuxmemes@lemmy.world · 4 months agomessage-square185linkfedilink
minus-squareSavinDWhales@lemmy.worldlinkfedilinkarrow-up7·4 months agoIf you’re not using fish: sudo !!
minus-squareSir_Premiumhengst@lemmy.worldlinkfedilinkarrow-up3·4 months agoYes. But: Bash: alias please=‘sudo $(history -p !!)’ Zsh: alias please=‘sudo $(fc -ln -1)’
minus-squareNilz@sopuli.xyzlinkfedilinkarrow-up3·4 months agoOr if you are on ZSH: press escape twice. Does require OhMyZSH with sudo plugin.
TIL the alt+s thing
If you’re not using fish:
sudo !!Yes.
But: Bash: alias please=‘sudo $(history -p !!)’ Zsh: alias please=‘sudo $(fc -ln -1)’
Or if you are on ZSH: press escape twice. Does require OhMyZSH with sudo plugin.
https://github.com/nvbn/thefuck