Last Updated: February 25, 2016
·
268
· vsouza

Forgot to run a command as root?

put in .zshrc (if you use zshell) or .bashrc file:

alias last='sudo $(history -p \!\!)'

or if you wanna some fun :)

alias fuck='sudo $(history -p \!\!)'