Skip to content

Instantly share code, notes, and snippets.

@tobyspark
Last active December 29, 2021 15:47
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobyspark/fa57e1c663bc5d799d2a to your computer and use it in GitHub Desktop.
Save tobyspark/fa57e1c663bc5d799d2a to your computer and use it in GitHub Desktop.
Script to configure a Max OS X machine to my taste
### Confiure a Mac OS X machine for my taste
### Toby Harris - http://tobyz.net / http://sparklive.net
### App Store
# Calca
# Coderunner
# Dash
# Xcode
### Downloads
# Dropbox
# Chrome
# Github
# Xcode Graphics Utilities
# Royal Apple Mail
### OSX
# Disable dashboard
defaults write com.apple.dashboard mcx-disabled -boolean YES
# Disable Time Machine dialog when external drives mount
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool YES
# Select text in Quick Look
defaults write com.apple.finder QLEnableTextSelection -bool TRUE
# Show the ~/Library folder
chflags nohidden ~/Library
# Enable AirDrop over Ethernet
defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1
# Set Help Viewer windows to non-floating mode
defaults write com.apple.helpviewer DevMode -bool true
# Expand save panel by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
# Expand print panel by default
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
# Save to disk (not to iCloud) by default
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
# When performing a search, search the current folder by default
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
# Avoid creating .DS_Store files on network volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
# Disable the warning when changing a file extension
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
### System Preferences > Desktop
# Disable menu bar transparency
defaults write -g AppleEnableMenuBarTransparency -bool false
### System Preferences > Mission Control
# Hot Corners
defaults write com.apple.Dock wvous-bl-corner -int 5
defaults write com.apple.Dock wvous-bl-modifier -int 0;
defaults write com.apple.Dock wvous-br-corner -int 10;
defaults write com.apple.Dock wvous-br-modifier -int 0;
# Displays have separate Spaces
defaults write com.apple.spaces spans-displays -bool true
### System Preferences > Dock
# Set the icon size of Dock items to 32 pixels
defaults write com.apple.dock tilesize -int 32
# Set the magnified size of Dock items to 48 pixels
defaults write com.apple.dock largesize -int 48
# Magnification on
defaults write com.apple.dock magnification -bool true
# Automatically hide and show the Dock
defaults write com.apple.dock autohide -bool true
# Set Dock to left hand side
defaults write com.apple.dock orientation -string 'left'
### System Preferences > Security
# General - Require password x after sleep or screen saver begins
defaults write com.apple.screensaver askForPasswordDelay -int 5
# Firewall
# - On
### System Preferences > Energy Saver
# Disable screensaver
defaults write com.apple.screensaver idleTime -int 0
defaults -currentHost write com.apple.screensaver idleTime -int 0
# Disable system sleep
sudo pmset sleep 0
# Disable display sleep
sudo pmset displaysleep 0
# Enable wake on ethernet
sudo pmset womp 1
### System Preferences > Spotlight
# Search Results
# - Folders above documents
### System Preferences > Keyboard
# Show Keyboard & Character Viewers in menu bar
# - tick
### System Preferences > Mouse
# Secondary click
defaults write com.apple.driver.AppleBluetoothMultitouch.mouse MouseButtonMode -string 'TwoButton'
defaults write com.apple.driver.AppleHIDMouse Button2 -int 1
# Tracking
# - 6
### Users & Groups
# Avatar
# Show fast user switching menu as
# - Tick
# - Full Name
### Text Edit
# how to get blank document on start?
# Use plain text mode for new documents
defaults write com.apple.TextEdit RichText -int 0
# Open files as UTF-8
defaults write com.apple.TextEdit PlainTextEncoding -int 4
# Save files as UTF-8
defaults write com.apple.TextEdit PlainTextEncodingForWrite -int 4
# Display HTML files as HTML code instead of formatted text
defaults write com.apple.TextEdit IgnoreHTML -bool true
# Font size
defaults write com.apple.TextEdit NSFixedPitchFontSize -int 13
defaults write com.apple.TextEdit NSFontSize -int 13
### Terminal
# White on slightly translucent black
defaults write com.apple.Terminal "Default Window Settings" -string "Pro"
defaults write com.apple.Terminal "Startup Window Settings" -string "Pro"
### Disk Utility
# Enable the debug menu in Disk Utility
defaults write com.apple.DiskUtility DUDebugMenuEnabled -bool true
defaults write com.apple.DiskUtility advanced-image-options -bool true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment