How can I `alias sudo !!`?
64
votes
6
answers
48312
views
I'm trying to set an alias for
sudo !!
in Bash. I tried alias sbb='sudo !!
', but it interprets that as a literal !!
and prints
sudo: !!: command not found
If I use double quotes, it substitutes the double bang in the string itself, so that doesn't work.
Is there any way to make this work? Or an alternative alias?
`
Asked by Manishearth
(1007 rep)
Aug 2, 2013, 06:17 PM
Last activity: Dec 22, 2022, 06:14 PM
Last activity: Dec 22, 2022, 06:14 PM