Skip to content

Commit 4af99e2

Browse files
committedJul 26, 2022
2022-07-26 09:11:19
1 parent 63c0fa7 commit 4af99e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎home/bashrc

+5
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,11 @@ reload_bashrc() {
315315

316316
# macOS ────────────────────────────────────────────────────────────────────────
317317

318+
# Keep MacBook awake with lid closed
319+
# https://caffeinated.app/keep-macbook-awake-with-lid-closed/
320+
alias caffeinate-lid='sudo pmset -b sleep 0; sudo pmset -b disablesleep 1'
321+
alias decaffeinate-lid='sudo pmset -b sleep 5; sudo pmset -b disablesleep 0'
322+
318323
# Sets the PATH environment variable for all services on macOS.
319324
alias set-path='sudo launchctl config user path ~/.local/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/opt/homebrew/sbin:/usr/local/sbin:/usr/sbin:/sbin'
320325

0 commit comments

Comments
 (0)