Last active
January 29, 2017 04:48
-
-
Save kennyng/b7b82ddd960fbe767894 to your computer and use it in GitHub Desktop.
Mac OSX Defaults
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "START SETTING CONFIGURATION DEFAULTS..." | |
########################################################### | |
# General UI/UX | |
########################################################### | |
echo -e "\nDisable window animations ("new window" scale effect)." | |
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false | |
echo -e "\nExpanding the save panel by default." | |
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true | |
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true | |
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true | |
echo -e "\nAutomatically quit printer app once the print job is complete." | |
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true | |
#echo -e "\nReveal IP address, hostname, OS version, etc. when clicking the clock in the login window." | |
#sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo Hostname | |
echo -e "\nRemoving duplicates in the 'Open With' menu." | |
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user | |
#echo -e "\nResetting Launch Servies." | |
#/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -seed -r -f -v -domain local -domain user -domain system | |
echo -e "\nDisabling the menubar transparency." | |
defaults write com.apple.universalaccess reduceTransparency -bool true | |
########################################################### | |
# Trackpad, mouse, heyboard, display, and input settings | |
########################################################### | |
echo -e "\nSetting a blazingly fast keyboard repeat rate." | |
defaults write NSGlobalDomain KeyRepeat -int 0 | |
echo -e "\nSetting a short delay until key repeat." | |
defaults write NSGlobalDomain InitialKeyRepeat -int 10 | |
#echo -e "\nEnable character repeat on keydown." | |
#defaults write -g ApplePressAndHoldEnabled -bool false | |
echo -e "\nSetting trackpad & mouse speed to a reasonable number." | |
defaults write -g com.apple.trackpad.scaling 2 | |
defaults write -g com.apple.mouse.scaling 2.5 | |
echo -e "\nTurn off keyboard illumination when computer is not used for 10 minutes." | |
defaults write com.apple.BezelServices kDimTime -int 600 | |
echo -e "\nEnabling subpixel font rendering on non-Apple LCDs" | |
defaults write NSGlobalDomain AppleFontSmoothing -int 2 | |
########################################################### | |
# Finder Configurations | |
########################################################### | |
#echo -e "\nShow hidden files in Finder." | |
#defaults write com.apple.finder AppleShowAllFiles -bool true | |
#echo -e "\nShow dotfiles in Finder." | |
#defaults write com.apple.finder AppleShowAllFiles TRUE | |
#echo -e "\nShow all filename extensions in Finder." | |
#defaults write NSGlobalDomain AppleShowAllExtensions -bool true | |
echo -e "\nShow status bar in Finder." | |
defaults write com.apple.finder ShowStatusBar -bool true | |
echo -e "\nShow path bar in Finder." | |
defaults write com.apple.finder ShowPathBar -bool true | |
##echo -e "\nDisplay the full POSIX path as Finder window title."\ | |
##defaults write com.apple.finder _FXShowPosixPathInTitle -bool true | |
echo -e "\nAvoid creation of .DS_Store files on network volumes." | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true | |
#echo -e "\nEnabling snap-to-grid for icons on the desktop and in other icon views." | |
#/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist | |
#/usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist | |
#/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist | |
########################################################### | |
# Dock & Mission Control Configurations | |
########################################################### | |
echo -e "\nSetting the icon size of Dock iterms to 48 pixels (optimal)." | |
defaults write com.apple.dock tilesize -int 48 | |
echo -e "\nSpeed up Mission Control animations and grouping windows by application." | |
defaults write com.apple.dock expose-animation-duration -float 0.1 | |
defaults write com.apple.dock "expose-group-by-app" -bool true | |
echo -e "\nSet Dock to auto-hide." | |
defaults write com.apple.dock autohide -bool true | |
########################################################### | |
# Safari Configurations | |
########################################################### | |
echo -e "\nPrivacy: Do not send search queries to Apple." | |
defaults write com.apple.Safari UniversalSearchEnabled -bool false | |
defaults write.com.apple.Safari SuppressSearchSuggestions -bool true | |
echo -e "\nDisabling Safari's thumbnail cache for History and Top Sites." | |
defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2 | |
echo -e "\nEnabling Safari's debug menu." | |
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true | |
echo -e "\nMaking Safari's search default to 'Contains' instead of 'Starts With'." | |
defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false | |
echo -e "\nEnabling the Develop menu and the Web Inspector in Safari." | |
defaults write com.apple.Safari IncludeDevelopMenu -bool true | |
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true | |
defaults write com.apple.Safari "com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled" -bool true | |
echo -e "\nAdding a context menu item for showing the Web Inspector in web views." | |
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true | |
########################################################### | |
# Miscellaneous Configurations | |
########################################################### | |
echo -e "\nPrevent Time Machine from prompting to use new hard drives as backup volume." | |
defaults write com.apple.TimeMachine DoNoOfferNewDisksForBackup -bool true | |
echo -e "\nDisable 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 | |
echo -e "\Enable AirDrop over Ethernet and on unsupported Macs." | |
defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment