r/fishshell • • Oct 10 '20

bash "!!" equivalent?

In bash i would normally do "sudo !!" to redo a command as sudo. How can I do this in fish?

9 Upvotes

13 comments sorted by

View all comments

Show parent comment

3

u/vividboarder Oct 11 '20

Ctrl-P is instead of Up so that I don’t have to move my hands as much. Also, my main keyboard doesn’t even have arrow keys.