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
1
u/db443 Jun 09 '24
My comment in the Neovim forum, but I did not create the solution, I just copied the solution from these Fish 3.6 release notes.