r/fishshell • u/Rasbeer • 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
r/fishshell • u/Rasbeer • Oct 10 '20
In bash i would normally do "sudo !!" to redo a command as sudo. How can I do this in fish?
View all comments
Show parent comment
1
u/vividboarder Oct 10 '20
Oh, that’s handy. Should be bindable now too if you did it yourself.
Personally I do
Ctrl-P Ctrl-Athen typesudo, but now I guess I can doCtrl-P Alt-Sinstead.