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 \!\!)'
Written by Vinicius Souza
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Terminal
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#