Skip to content

Instantly share code, notes, and snippets.

@alessaba
Created September 21, 2019 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alessaba/58cad7e8eb9650a5bcf5d5c004e171c8 to your computer and use it in GitHub Desktop.
Save alessaba/58cad7e8eb9650a5bcf5d5c004e171c8 to your computer and use it in GitHub Desktop.
Simple shell function to allow macOS (10.15+) users with an Apple Watch to authenticate sudo requests using the Apple Watch
function awsudo {
osascript -e "do shell script \"$*\" with administrator privileges"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment