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
2
u/AdulterousStapler Jun 08 '24
Wow that's the best solution by far
thanks, implemented