Skip to content

Instantly share code, notes, and snippets.

@miketucker
Last active February 5, 2020 04:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save miketucker/4b07da2482c3311f1879 to your computer and use it in GitHub Desktop.
Save miketucker/4b07da2482c3311f1879 to your computer and use it in GitHub Desktop.
tweaks to prepare your OSX machine for an installation
# disable screensaver
defaults -currentHost write com.apple.screensaver idleTime 0;
# restart automatically if crashes
systemsetup -setrestartfreeze on;
# disable sleep
systemsetup -setcomputersleep Off > /dev/null;
# disable bluetooth setup dialog boxes
defaults write /Library/Preferences/com.apple.Bluetooth BluetoothAutoSeekKeyboard -bool false;
defaults write /Library/Preferences/com.apple.Bluetooth BluetoothAutoSeekPointingDevice -bool false;
# disable apps that re-open on reboot
defaults write -g ApplePersistence -bool no;
defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false;
# disable software update
sudo softwareupdate --schedule off;
# EXTRAS ###
# disable dashboard (saves a bit of memory)
defaults write com.apple.dashboard mcx-disabled -boolean YES;
# hide the desktop icons
defaults write com.apple.finder CreateDesktop -bool false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment