Created
July 18, 2014 19:54
-
-
Save KamilLelonek/aba342e287f50d9aa5f1 to your computer and use it in GitHub Desktop.
dot-files
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 | |
echo "Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)" | |
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 | |
echo "Enable subpixel font rendering on non-Apple LCDs" | |
defaults write NSGlobalDomain AppleFontSmoothing -int 2 | |
echo "Enable the 2D Dock" | |
defaults write com.apple.dock no-glass -bool true | |
echo "Make Dock icons of hidden applications translucent" | |
defaults write com.apple.dock showhidden -bool true | |
echo "Enable iTunes track notifications in the Dock" | |
defaults write com.apple.dock itunes-notifications -bool true | |
# Show remaining battery time and percentage | |
defaults write com.apple.menuextra.battery ShowPercent -string "YES" | |
defaults write com.apple.menuextra.battery ShowTime -string "YES" | |
echo "Allow quitting Finder via ⌘ + Q; doing so will also hide desktop icons" | |
defaults write com.apple.finder QuitMenuItem -bool true | |
echo "Show all filename extensions in Finder" | |
defaults write NSGlobalDomain AppleShowAllExtensions -bool true | |
echo "Use current directory as default search scope in Finder" | |
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf" | |
echo "Expand save panel by default" | |
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true | |
echo "Expand print panel by default" | |
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true | |
echo "Disable the “Are you sure you want to open this application?” dialog" | |
defaults write com.apple.LaunchServices LSQuarantine -bool false | |
echo "Enable spring loading for all Dock items" | |
defaults write enable-spring-load-actions-on-all-items -bool true | |
echo "Disable press-and-hold for keys in favor of key repeat" | |
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false | |
echo "Set a blazingly fast keyboard repeat rate" | |
defaults write NSGlobalDomain KeyRepeat -int 0.05 | |
echo "Set a shorter Delay until key repeat" | |
defaults write NSGlobalDomain InitialKeyRepeat -int 12 | |
echo "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 | |
echo "Avoid creating .DS_Store files on network volumes" | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true | |
echo "Disable the warning when changing a file extension" | |
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false | |
echo "Show item info below desktop icons" | |
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist | |
echo "Enable snap-to-grid for desktop icons" | |
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist | |
echo "Disable the warning before emptying the Trash" | |
defaults write com.apple.finder WarnOnEmptyTrash -bool false | |
echo "Add a context menu item for showing the Web Inspector in web views" | |
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true | |
echo "Make ⌘ + F focus the search input in iTunes" | |
defaults write com.apple.iTunes NSUserKeyEquivalents -dict-add "Target Search Field" "@F" | |
echo "Disable the “reopen windows when logging back in” option" | |
defaults write com.apple.loginwindow TALLogoutSavesState -bool false | |
defaults write com.apple.loginwindow LoginwindowLaunchesRelaunchApps -bool false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment