Last active
August 29, 2015 14:11
-
-
Save lsdr/3283b0adfbf70d13d277 to your computer and use it in GitHub Desktop.
mac osx tunning script (yosemite version)
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
# Shamelessly stolen from fnando: | |
# https://github.com/fnando/dotfiles/blob/master/files/.bash/macosx.sh | |
# | |
# Disable menu bar transparency | |
#defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false | |
# Show remaining battery time; hide percentage | |
#defaults write com.apple.menuextra.battery ShowPercent -string "NO" | |
#defaults write com.apple.menuextra.battery ShowTime -string "YES" | |
# Expand save panel by default | |
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true | |
# Expand print panel by default | |
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true | |
# Use current directory as default search scope in Finder | |
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf" | |
# Display ASCII control characters using caret notation in standard text views | |
# Try e.g. `cd /tmp; unidecode "\x{0000}" > cc.txt; open -e cc.txt` | |
#defaults write NSGlobalDomain NSTextShowsControlCharacters -bool true | |
# Increase window resize speed for Cocoa applications | |
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001 | |
# Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs) | |
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 | |
# Enable subpixel font rendering on non-Apple LCDs | |
defaults write NSGlobalDomain AppleFontSmoothing -int 2 | |
# Enable tap to click (Trackpad) for this user and for the login screen | |
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true | |
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1 | |
defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1 | |
# Show status bar in Finder | |
defaults write com.apple.finder ShowStatusBar -bool true | |
# 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 | |
# Avoid creating .DS_Store files on network volumes | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true | |
# Show item info below desktop icons | |
#/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist | |
# Enable snap-to-grid for desktop icons | |
#/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist | |
# Empty Trash securely by default | |
#defaults write com.apple.finder EmptyTrashSecurely -bool true | |
# Show the ~/Library folder | |
chflags nohidden ~/Library | |
# Enable spring loading for all Dock items | |
defaults write com.apple.dock enable-spring-load-actions-on-all-items -bool true | |
# Remove the auto-hiding Dock delay | |
defaults write com.apple.Dock autohide-delay -float 0 | |
# Enable the 2D Dock | |
#defaults write com.apple.dock no-glass -bool true | |
# Automatically hide and show the Dock | |
#defaults write com.apple.dock autohide -bool true | |
# Disable shadow in screenshots | |
defaults write com.apple.screencapture disable-shadow -bool true | |
# Enable Safari’s debug menu | |
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true | |
# Make Safari’s search banners default to Contains instead of Starts With | |
defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false | |
# Remove useless icons from Safari’s bookmarks bar | |
defaults write com.apple.Safari ProxiesInBookmarksBar "()" | |
# Add a context menu item for showing the Web Inspector in web views | |
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true | |
# Enable the debug menu in Address Book | |
#defaults write com.apple.addressbook ABShowDebugMenu -bool true | |
# Enable the debug menu in iCal | |
#defaults write com.apple.iCal IncludeDebugMenu -bool true | |
# Only use UTF-8 in Terminal.app | |
defaults write com.apple.terminal StringEncodings -array 4 | |
# Disable the Ping sidebar in iTunes | |
defaults write com.apple.iTunes disablePingSidebar -bool true | |
# Disable all the other Ping stuff in iTunes | |
defaults write com.apple.iTunes disablePing -bool true | |
# Reset Launchpad | |
# [ -e ~/Library/Application\ Support/Dock/*.db ] && rm ~/Library/Application\ Support/Dock/*.db | |
# Prevent Time Machine from prompting to use new hard drives as backup volume | |
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true | |
# Hide the Spotlight Menu Icon | |
#sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search | |
# Tell Safari to open new window links in tabs | |
defaults write com.apple.Safari TargetedClicksCreateTabs -bool true | |
# Kill affected applications | |
#for app in Finder Dock Mail Safari iTunes iCal Address\ Book SystemUIServer; do killall "$app" > /dev/null 2>&1; done | |
#echo "OSX Hacks Done. Note that some of these changes require a logout/restart to take effect." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment