Put your mac to sleep from the terminal
osascript -e 'tell application "System Events" to sleep'
*edit, thanks @colinm for the not so verbose version!
pmset sleepnow
I started to use this after pushing the last commit of the day. Ex:
git push && pmset sleepnow
Written by Eddy Hernandez
Related protips
2 Responses
For something more easily memorable, try:
pmset sleepnow
over 1 year ago
·
I use good ol' Alfred;
Option + Space "sleep" enter
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Osx
Authors
Related Tags
#osx
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#