Created
August 13, 2016 12:34
-
-
Save ahmadawais/3b2b0b9a2c530a8c0fc86a7affa197b4 to your computer and use it in GitHub Desktop.
Set Defaults for OS X DOT files (download to root, rename as '.set-defaults' and then type 'source .set-defaults' fro Terminal)
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
| # Sets reasonable OS X defaults. | |
| # Starting point was: https://github.com/holman/dotfiles/blob/master/osx/set-defaults.sh | |
| # | |
| # | |
| # | |
| # BF says: Download this file to root, rename as '.set-defaults' (e.g. remove the file extension) and then type 'source .set-defaults' from Terminal. Once done, restart and your golden. | |
| # Disable the sound effects on boot | |
| sudo nvram SystemAudioVolume=%00 | |
| # Always show scrollbars | |
| defaults write NSGlobalDomain AppleShowScrollBars -string "Always" | |
| # Possible values: `WhenScrolling`, `Automatic` and `Always` | |
| # Disable opening and closing window animations | |
| defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false | |
| # Increase window resize speed for Cocoa applications | |
| defaults write NSGlobalDomain NSWindowResizeTime -float 0.001 | |
| # 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 | |
| # Automatically quit printer app once the print jobs complete | |
| defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true | |
| # Disable the “Are you sure you want to open this application?” dialog | |
| defaults write com.apple.LaunchServices LSQuarantine -bool false | |
| # Check for software updates daily, not just once per week | |
| defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1 | |
| # Disable Notification Center and remove the menu bar icon | |
| # launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist | |
| # Disable “natural” (Lion-style) scrolling | |
| defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false | |
| # Disable press-and-hold for keys in favor of key repeat. | |
| defaults write -g ApplePressAndHoldEnabled -bool false | |
| # Use AirDrop over every interface. | |
| # defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1 | |
| # Use list view in all Finder windows by default | |
| # Four-letter codes for the other view modes: `icnv`, `clmv`, `Flwv` | |
| defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv" | |
| # Show the ~/Library folder. | |
| chflags nohidden ~/Library | |
| # Set a blazingly fast keyboard repeat rate | |
| defaults write NSGlobalDomain KeyRepeat -int 0 | |
| # Disable auto-correct | |
| # defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false | |
| # Set the Finder prefs for showing a few different volumes on the Desktop. | |
| defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true | |
| defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true | |
| # Run the screensaver if we're in the bottom-left hot corner. | |
| # defaults write com.apple.dock wvous-bl-corner -int 5 | |
| # defaults write com.apple.dock wvous-bl-modifier -int 0 | |
| # Hide Safari's bookmark bar. | |
| defaults write com.apple.Safari ShowFavoritesBar -bool false | |
| # Set up Safari for development. | |
| defaults write com.apple.Safari IncludeInternalDebugMenu -bool true | |
| 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 | |
| defaults write NSGlobalDomain WebKitDeveloperExtras -bool true | |
| # Save screenshots to the desktop | |
| defaults write com.apple.screencapture location -string "$HOME/Desktop" | |
| # Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF) | |
| defaults write com.apple.screencapture type -string "png" | |
| # Disable shadow in screenshots | |
| defaults write com.apple.screencapture disable-shadow -bool true | |
| ############################################################################### | |
| # Finder # | |
| ############################################################################### | |
| # Finder: allow quitting via ⌘ + Q; doing so will also hide desktop icons | |
| # defaults write com.apple.finder QuitMenuItem -bool true | |
| # Finder: disable window animations and Get Info animations | |
| defaults write com.apple.finder DisableAllAnimations -bool true | |
| # 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 | |
| # Finder: show hidden files by default | |
| # defaults write com.apple.finder AppleShowAllFiles -bool true | |
| # Finder: show all filename extensions | |
| defaults write NSGlobalDomain AppleShowAllExtensions -bool true | |
| # Finder: show status bar | |
| defaults write com.apple.finder ShowStatusBar -bool true | |
| # Finder: show path bar | |
| defaults write com.apple.finder ShowPathbar -bool true | |
| # Finder: allow text selection in Quick Look | |
| defaults write com.apple.finder QLEnableTextSelection -bool true | |
| # Display full POSIX path as Finder window title | |
| defaults write com.apple.finder _FXShowPosixPathInTitle -bool true | |
| # When performing a search, search the current folder by default | |
| defaults write com.apple.finder FXDefaultSearchScope -string "SCcf" | |
| # Disable the warning when changing a file extension | |
| defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false | |
| # Enable spring loading for directories | |
| defaults write NSGlobalDomain com.apple.springing.enabled -bool true | |
| # Remove the spring loading delay for directories | |
| defaults write NSGlobalDomain com.apple.springing.delay -float 0 | |
| # Avoid creating .DS_Store files on network volumes | |
| defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true | |
| # Don’t animate opening applications from the Dock | |
| defaults write com.apple.dock launchanim -bool false | |
| # Speed up Mission Control animations | |
| defaults write com.apple.dock expose-animation-duration -float 0.1 | |
| # Remove the auto-hiding Dock delay | |
| defaults write com.apple.dock autohide-delay -float 0 | |
| # Remove the animation when hiding/showing the Dock | |
| defaults write com.apple.dock autohide-time-modifier -float 0 | |
| # Disable Dashboard | |
| defaults write com.apple.dashboard mcx-disabled -boolean YES && killall Dock | |
| # Renable | |
| # defaults write com.apple.dashboard mcx-disabled -boolean NO && killall Dock | |
| # Don’t show Dashboard as a Space | |
| defaults write com.apple.dock dashboard-in-overlay -bool true | |
| # Don’t automatically rearrange Spaces based on most recent use | |
| defaults write com.apple.dock mru-spaces -bool false | |
| ############################################################################### | |
| # Safari & WebKit # | |
| ############################################################################### | |
| # Set Safari’s home page to `about:blank` for faster loading | |
| defaults write com.apple.Safari HomePage -string "about:blank" | |
| # Prevent Safari from opening ‘safe’ files automatically after downloading | |
| defaults write com.apple.Safari AutoOpenSafeDownloads -bool false | |
| # Allow hitting the Backspace key to go to the previous page in history | |
| defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2BackspaceKeyNavigationEnabled -bool true | |
| # Hide Safari’s bookmarks bar by default | |
| defaults write com.apple.Safari ShowFavoritesBar -bool false | |
| # Disable Safari’s thumbnail cache for History and Top Sites | |
| defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment