Created
July 30, 2014 04:30
-
-
Save aaronwalker/ac7d3c36eacbb01d10b1 to your computer and use it in GitHub Desktop.
osx default
This file contains hidden or 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
| #!/bin/bash | |
| # Set custom OS X defaults | |
| # See: github.com/mathiasbynens/dotfiles | |
| # General UI/UX | |
| # ---------------------------------------------------------------------- | |
| # Disable Menu bar transparency | |
| defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false | |
| # Enable snap-to-grid for desktop icons | |
| /usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist | |
| # Always show scrollbars | |
| defaults write NSGlobalDomain AppleShowScrollBars -string "Always" | |
| # Save to disk (not to iCloud) by default | |
| defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false | |
| # Automatically quit printer app once the print jobs complete | |
| defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true | |
| # Disable automatic termination of inactive apps | |
| defaults write NSGlobalDomain NSDisableAutomaticTermination -bool true | |
| # Disable Resume system-wide | |
| defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false | |
| # Disable press-and-hold for keys in favor of key repeat | |
| defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false | |
| # Set a blazingly fast keyboard repeat rate | |
| defaults write NSGlobalDomain KeyRepeat -int 0 | |
| # Trackpad: swipe between pages with three fingers | |
| defaults write NSGlobalDomain AppleEnableSwipeNavigateWithScrolls -bool true | |
| defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerHorizSwipeGesture -int 1 | |
| defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerHorizSwipeGesture -int 1 | |
| # Don’t automatically rearrange Spaces based on most recent use | |
| defaults write com.apple.dock mru-spaces -bool false | |
| # Dock | |
| # ---------------------------------------------------------------------- | |
| # Dock: enable the 2D Dock | |
| defaults write com.apple.dock no-glass -bool true | |
| # Dock: position the Dock on the left | |
| defaults write com.apple.dock orientation left | |
| # Dock: set the icon size of Dock items to 36 pixels | |
| defaults write com.apple.dock tilesize -int 36 | |
| # Dock: show indicator lights for open applications | |
| defaults write com.apple.dock show-process-indicators -bool true | |
| # Dock: make icons of hidden applications translucent | |
| defaults write com.apple.dock showhidden -bool true | |
| # Dock: don’t animate opening applications | |
| defaults write com.apple.dock launchanim -bool false | |
| # Dock: use the scale effect for window minimizing | |
| defaults write com.apple.dock mineffect scale | |
| # Dock: speed up Mission Control animations | |
| defaults write com.apple.dock expose-animation-duration -float 0.1 | |
| # Finder | |
| # ---------------------------------------------------------------------- | |
| # Finder: show all filename extensions | |
| defaults write NSGlobalDomain AppleShowAllExtensions -bool true | |
| # Finder: disable the warning when changing a file extension | |
| defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false | |
| # Finder: empty Trash securely by default | |
| defaults write com.apple.finder EmptyTrashSecurely -bool true | |
| # Finder: disable window and Get Info animations | |
| defaults write com.apple.finder DisableAllAnimations -bool true | |
| # Finder: allow quitting via ⌘ + Q; doing so will also hide desktop icons | |
| defaults write com.apple.finder QuitMenuItem -bool true | |
| # Finder: show the ~/Library folder (in OS X Lion) | |
| chflags nohidden ~/Library | |
| # Finder: show hidden files by default | |
| defaults write com.apple.finder AppleShowAllFiles -bool true | |
| # Finder: use list view in all windows by default | |
| # Four-letter codes for the other view modes: `icnv`, `clmv`, `Flwv` | |
| defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv" | |
| # Show icons for hard drives, servers, and removable media on the desktop | |
| defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true | |
| defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true | |
| defaults write com.apple.finder ShowMountedServersOnDesktop -bool true | |
| defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true | |
| # Panels | |
| # ---------------------------------------------------------------------- | |
| # Panels: expand save panel by default | |
| defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true | |
| # Panels: expand print panel by default | |
| defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true | |
| # Panels: disable the “Are you sure you want to open this application?” dialog | |
| defaults write com.apple.LaunchServices LSQuarantine -bool false | |
| # Panels: enable full keyboard access for all controls (e.g. enable Tab in modal dialogs) | |
| defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 | |
| # Screen | |
| # ---------------------------------------------------------------------- | |
| # Screen: require password immediately after sleep or screen saver begins | |
| defaults write com.apple.screensaver askForPassword -int 1 | |
| defaults write com.apple.screensaver askForPasswordDelay -int 0 | |
| # Screen: save screenshots to the desktop | |
| defaults write com.apple.screencapture location -string "$HOME/Desktop" | |
| # Screen: disable shadow in screenshots | |
| defaults write com.apple.screencapture disable-shadow -bool true | |
| # Screen: enable subpixel font rendering on non-Apple LCDs | |
| defaults write NSGlobalDomain AppleFontSmoothing -int 2 | |
| # Disks | |
| # ---------------------------------------------------------------------- | |
| # Disks: avoid creating .DS_Store files on network volumes | |
| defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true | |
| # Disks: disable Time Machine prompts | |
| defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true | |
| # Disks: disable local Time Machine backups | |
| hash tmutil &> /dev/null && sudo tmutil disablelocal | |
| # Disks: 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 | |
| # iTunes | |
| # ---------------------------------------------------------------------- | |
| # iTunes: make ⌘ + F focus the search input | |
| defaults write com.apple.iTunes NSUserKeyEquivalents -dict-add "Target Search Field" "@F" | |
| # iTunes: disable the Ping sidebar in iTunes | |
| defaults write com.apple.iTunes disablePingSidebar -bool true | |
| # iTunes: disable all the other Ping stuff | |
| defaults write com.apple.iTunes disablePing -bool true | |
| # Misc | |
| # ---------------------------------------------------------------------- | |
| # Misc: only use UTF-8 in Terminal.app | |
| defaults write com.apple.terminal StringEncodings -array 4 | |
| # Misc: disable Dictionary results | |
| defaults write com.apple.spotlight DictionaryLookupEnabled -bool false | |
| # Misc: disable auto-correct | |
| defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false | |
| for app in "Dashboard" "Dock" "Finder" "SystemUIServer" "Terminal" "iTunes"; do | |
| killall "$app" > /dev/null 2>&1 | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment