Skip to content

Instantly share code, notes, and snippets.

@kumpelblase2
Last active October 24, 2022 14:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kumpelblase2/f7132e326b9917899b2d to your computer and use it in GitHub Desktop.
Save kumpelblase2/f7132e326b9917899b2d to your computer and use it in GitHub Desktop.
please~ -- Runs last command as root.
alias please='sudo bash -c "$(history -p !!)"'
alias please='sudo $(fc -ln -1)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment