DEV Community

Discussion on: What are your preferred bash aliases?

Collapse
 
cod3slinger profile image
Cod3slinger • Edited

I'm always a fan of:

alias please='sudo $(fc -ln -1)'

That is, rerun the last typed command, but prepend it with 'sudo' this time.