Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 23rd, 2012  |  syntax: None  |  size: 3.15 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/usr/bin/env sh
  2.  
  3. ##
  4. # This is script with usefull tips taken from:
  5. #   https://github.com/mathiasbynens/dotfiles/blob/master/.osx
  6. #
  7. # install it:
  8. #   curl -sL https://raw.github.com/gist/2357277/hack.sh | sh
  9. #
  10.  
  11. echo "Enable subpixel font rendering on non-Apple LCDs"
  12. defaults write NSGlobalDomain AppleFontSmoothing -int 2
  13.  
  14. #echo "Enable the 2D Dock"
  15. #defaults write com.apple.dock no-glass -bool true
  16.  
  17. echo "Allow quitting Finder via ⌘ + Q; doing so will also hide desktop icons"
  18. defaults write com.apple.finder QuitMenuItem -bool true
  19.  
  20. echo "Disable window animations and Get Info animations in Finder"
  21. defaults write com.apple.finder DisableAllAnimations -bool true
  22.  
  23. echo "Expand save panel by default"
  24. defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
  25.  
  26. echo "Expand print panel by default"
  27. defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
  28.  
  29. echo "Enable highlight hover effect for the grid view of a stack (Dock)"
  30. defaults write com.apple.dock mouse-over-hilte-stack -bool true
  31.  
  32. echo "Enable spring loading for all Dock items"
  33. defaults write enable-spring-load-actions-on-all-items -bool true
  34.  
  35. echo "Don’t animate opening applications from the Dock"
  36. defaults write com.apple.dock launchanim -bool false
  37.  
  38. #echo "Disable press-and-hold for keys in favor of key repeat"
  39. #defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
  40.  
  41. echo "Set a blazingly fast keyboard repeat rate"
  42. defaults write NSGlobalDomain KeyRepeat -int 0.02
  43.  
  44. echo "Set a shorter Delay until key repeat"
  45. defaults write NSGlobalDomain InitialKeyRepeat -int 12
  46.  
  47. echo "Disable auto-correct"
  48. defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
  49.  
  50. echo "Disable opening and closing window animations"
  51. defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
  52.  
  53. echo "Enable AirDrop over Ethernet and on unsupported Macs running Lion"
  54. defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true
  55.  
  56. echo "Increase window resize speed for Cocoa applications"
  57. defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
  58.  
  59. echo "Avoid creating .DS_Store files on network volumes"
  60. defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
  61.  
  62. echo "Disable the warning when changing a file extension"
  63. defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
  64.  
  65. echo "Only use UTF-8 in Terminal.app"
  66. defaults write com.apple.terminal StringEncodings -array 4
  67.  
  68. echo "Disable the Ping sidebar in iTunes"
  69. defaults write com.apple.iTunes disablePingSidebar -bool true
  70.  
  71. echo "Disable all the other Ping stuff in iTunes"
  72. defaults write com.apple.iTunes disablePing -bool true
  73.  
  74. echo "Reset Launchpad"
  75. [ -e ~/Library/Application\ Support/Dock/*.db ] && rm ~/Library/Application\ Support/Dock/*.db
  76.  
  77. echo "Show the ~/Library folder"
  78. chflags nohidden ~/Library
  79.  
  80. echo "Disable local Time Machine backups"
  81. sudo tmutil disablelocal
  82.  
  83. echo "Remove Dropbox’s green checkmark icons in Finder"
  84. file=/Applications/Dropbox.app/Contents/Resources/check.icns
  85. [ -e "$file" ] && mv -f "$file" "$file.bak"
  86. unset file
  87.  
  88. echo "Kill affected applications"
  89. for app in Safari Finder Dock Mail SystemUIServer; do killall "$app" >/dev/null 2>&1; done