

31·
2 days agoNo need to install a separate app:
sudo pmset disablesleep 1
Lorem ipsum


No need to install a separate app:
sudo pmset disablesleep 1


You can just fork it and replace the image.
The authors talks about it here on their blog a bit more.
If you close the lid on a MacBook, it ignores caffeinate and goes to sleep anyway. The only cases in which it doesn’t go to sleep with a closed lid are when you connect an external display or disable sleep entirely:
sudo pmset disablesleep 1