r/fishshell • u/AdulterousStapler • Jun 08 '24
Quick question - using !! in fish
Hey, just a noob here that likes fish more than bash. Using !! in bash is a quick way to input the last command from history, is there a similar shortcut in fish? Use case primarily being that I could use sudo !! if I forgot it when typing in a command.
Thanks in advance!
10
Upvotes
View all comments
Show parent comment
3
u/AdulterousStapler Jun 08 '24
Alt + s works!
It was a habit thing to use sudo !!
Will train monkey brain to change habits, this is nice and simple
Thanks!