Skip to content

Instantly share code, notes, and snippets.

@renatoassis01
Created August 14, 2019 14:55
Show Gist options
  • Save renatoassis01/f6cec032d05bfd380815de3b23445b24 to your computer and use it in GitHub Desktop.
Save renatoassis01/f6cec032d05bfd380815de3b23445b24 to your computer and use it in GitHub Desktop.
Magic alias sudo
#https://twitter.com/GordonDiggs/status/1160901231277215744
alias please='sudo $(fc -ln -1)'
~$ bash ./helloworld
bash: ./helloworld: permission denied
~$ please
Hello World!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment