Skip to content

Instantly share code, notes, and snippets.

@rick4470
Created May 29, 2015 21:34
Show Gist options
  • Save rick4470/540a4674b292b720d990 to your computer and use it in GitHub Desktop.
Save rick4470/540a4674b292b720d990 to your computer and use it in GitHub Desktop.
Locking a mac with the command line
`alias lock=' /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