Skip to content

Instantly share code, notes, and snippets.

@grokcodile
Forked from saetia/gist:1623487
Last active October 4, 2015 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grokcodile/56db2766eec1cc0eae0f to your computer and use it in GitHub Desktop.
Save grokcodile/56db2766eec1cc0eae0f to your computer and use it in GitHub Desktop.
Custom Mac OS X Settings and Application Preferences - Post Clean Install
# Enable dark interface mode 
sudo defaults write /Library/Preferences/.GlobalPreferences AppleInterfaceTheme Dark

# Disable window animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

# Set Menubar clock to display day, date, and time
defaults write com.apple.menuextra.clock DateFormat -string "EEE MMM d  h:mm a"

# Use plain text mode and remove remove rulers for new TextEdit documents
defaults write com.apple.TextEdit RichText -int 0
defaults write com.apple.TextEdit ShowRuler -int 0

# Disable screen saver
defaults write com.apple.screensaver idleTime -int 0

# Make bottom-left hotspot put display to sleep
defaults write com.apple.dock wvous-bl-corner -int 10
defaults write com.apple.dock wvous-bl-modifier -int 0

# Require password immediately after display sleep
defaults write com.apple.screensaver askForPassword -int 1
defaults write com.apple.screensaver askForPasswordDelay -int 0

# Set default Finder location to All My Files
defaults write com.apple.finder NewWindowTarget -string "PfAF"

# Set default view style in OS X Finder to column view
defaults write com.apple.Finder FXPreferredViewStyle clmv

# Expand save panel by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true

# Expand print panel by default
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true

# Disable ext change warning
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false

# Disable the warning before emptying the Trash
defaults write com.apple.finder WarnOnEmptyTrash -bool false

# Check for software updates daily, not just once per week
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1

# Use current directory as default search scope in Finder
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"

# Show Path bar in Finder
defaults write com.apple.finder ShowPathbar -bool true

# Show Status bar in Finder
defaults write com.apple.finder ShowStatusBar -bool true

# Avoid creating .DS_Store files on network volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true

# Disable disk image verification
defaults write com.apple.frameworks.diskimages skip-verify -bool true
defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true
defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true

# Hide dock automatically, remove hidding delay, and make icons transparent when app is hidden
defaults write com.apple.dock autohide -boolean true
defaults write com.apple.dock autohide-delay -float 0
defaults write com.apple.Dock showhidden -bool true

# Enable the Recent Items Menu in the Dock (can be changed to show recent servers after added) 
defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'

# Show the ~/Library folder
chflags nohidden ~/Library

# Show absolute path in finder's title bar. 
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

# Enable text copying from Quick Look
defaults write com.apple.finder QLEnableTextSelection -bool YES

# Auto-play videos when opened with QuickTime Player
defaults write com.apple.QuickTimePlayerX MGPlayMovieOnOpen 1

# Enable AirDrop over Ethernet and on unsupported Macs
defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true

# Stop names from copying with email addresses in OS X Mail
defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false

# Install package manager (brew)
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Note: Logout/restart is required before many of these settings take effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment