Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Lock mac screen from command line
alias lockScreen='/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment