Skip to content

Instantly share code, notes, and snippets.

View midzdotdev's full-sized avatar
✌️

James Middleton midzdotdev

✌️
View GitHub Profile
@midzdotdev
midzdotdev / commands.md
Last active June 23, 2022 13:38
Useful macOS commands run from the terminal
  • All apps run without security warning: sudo spctl --master-disable
  • Disable SIP: csrutil disable (from recovery - ⌘R at boot)

Single App Mode

Back in 1999, Mac OS X ran in Single App Mode. In this state, opening an app minimizes the current one - and you can still make macOS behave that way today.

  • Enable: defaults write com.apple.dock single-app -bool true;killall Dock
  • Disable: defaults write com.apple.dock single-app -bool no;killall Dock

Charging Sound

The new-ish super slim 12-inch 2015 MacBook was the first of it's kind to make a chime when being plugged in. It's possible to have this on any MacBook with the command below.