SHARE
TWEET

some osx stuff

locationcold Jul 1st, 2014 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Disable the sound effects on boot
  2. sudo nvram SystemAudioVolume=" "
  3.  
  4. # Set sidebar icon size to small
  5. defaults write NSGlobalDomain NSTableViewDefaultSizeMode -int 1
  6.  
  7. # Always show scrollbars
  8. # Possible values: `WhenScrolling`, `Automatic` and `Always`
  9. defaults write NSGlobalDomain AppleShowScrollBars -string "WhenScrolling"
  10.  
  11. # Disable automatic termination of inactive apps
  12. defaults write -g NSDisableAutomaticTermination -bool yes
  13.  
  14. # Disable opening and closing window animations
  15. defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO
  16.  
  17. defaults write -g NSScrollViewRubberbanding -int 0
  18.  
  19. # No blur
  20. defaults -currentHost write -globalDomain AppleFontSmoothing -int 1
  21.  
  22. # Disable press-and-hold for keys in favor of key repeat
  23. defaults write -g ApplePressAndHoldEnabled -bool false
  24.  
  25. # Set a blazingly fast keyboard repeat rate
  26. defaults write NSGlobalDomain KeyRepeat -int 0
  27.  
  28. # Automatically illuminate built-in keyboard in low light
  29. defaults write com.apple.BezelServices kDim -bool true
  30.  
  31. # Turn off keyboard illumination when computer is not used for 5 minutes
  32. defaults write com.apple.BezelServices kDimTime -int 300
  33.  
  34. # Increase window resize speed for Cocoa applications
  35. defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
  36.  
  37. # Expand save panel by default
  38. defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
  39.  
  40. # Expand print panel by default
  41. defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
  42.  
  43. # Save to disk (not to iCloud) by default
  44. #defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
  45.  
  46. # Disable the “Are you sure you want to open this application?” dialog
  47. defaults write com.apple.LaunchServices LSQuarantine -bool false
  48.  
  49. # Disable Resume system-wide
  50. defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false
  51.  
  52. # Set Help Viewer windows to non-floating mode
  53. defaults write com.apple.helpviewer DevMode -bool true
  54.  
  55. # Fix for the ancient UTF-8 bug in QuickLook (http://mths.be/bbo)
  56. # Commented out, as this is known to cause problems in various Adobe apps :(
  57. # See https://github.com/mathiasbynens/dotfiles/issues/237
  58. #echo "0x08000100:0" > ~/.CFUserTextEncoding
  59.  
  60.  
  61. # Reveal IP address, hostname, OS version, etc. when clicking the clock
  62. # in the login window
  63. sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName
  64.  
  65. # Disable smart quotes as they’re annoying when typing code
  66. defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
  67.  
  68. # Disable smart dashes as they’re annoying when typing code
  69. defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
  70.  
  71. # Disable local Time Machine snapshots
  72. sudo tmutil disablelocal
  73.  
  74.  
  75. # Disable hibernation
  76. sudo pmset -a hibernatemode 0
  77. # Remove the sleep image file to save disk space
  78. sudo rm /var/vm/sleepimage
  79. sudo ln -s /dev/null /var/vm/sleepimage
  80.  
  81. # Disable “natural” (Lion-style) scrolling
  82. defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false
  83.  
  84. # Enable full keyboard access for all controls
  85. # (e.g. enable Tab in modal dialogs)
  86. defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
  87.  
  88. defaults write "Apple Global Domain" "com.apple.keyboard.fnState" "1" ## F1 F2 etc
  89. defaults write "Apple Global Domain" "com.apple.keyboard.fnState" "0" ## Brightness/Media
  90.  
  91.  
  92. # Disable auto-correct
  93. defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
  94.  
  95. # Require password immediately after sleep or screen saver begins
  96. defaults write com.apple.screensaver askForPassword -int 1
  97. defaults write com.apple.screensaver askForPasswordDelay -int 0
  98.  
  99. # Save screenshots to the appropriate place
  100. defaults write com.apple.screencapture location ~/Pictures/Screenshots/
  101.  
  102. # Disable shadow in screenshots
  103. defaults write com.apple.screencapture disable-shadow -bool true
  104.  
  105. #defaults write com.apple.desktop Background '{default = {ImageFilePath = "~/.config/desktop/gumi.jpg"; };}'
  106.  
  107. # Finder: disable window animations and Get Info animations
  108. defaults write com.apple.finder DisableAllAnimations -bool true
  109.  
  110. # Do not show icons for hard drives, servers, and removable media on the desktop
  111. defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool false
  112. defaults write com.apple.finder ShowHardDrivesOnDesktop -bool false
  113. defaults write com.apple.finder ShowMountedServersOnDesktop -bool false
  114. defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool false
  115.  
  116. # Finder: show all filename extensions
  117. defaults write NSGlobalDomain AppleShowAllExtensions -bool true
  118.  
  119. # Finder: show path bar
  120. defaults write com.apple.finder ShowPathbar -bool true
  121.  
  122. # Display full POSIX path as Finder window title
  123. defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
  124.  
  125. # When performing a search, search the current folder by default
  126. defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
  127.  
  128. # Disable the warning when changing a file extension
  129. defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
  130.  
  131. # Enable spring loading for directories
  132. defaults write NSGlobalDomain com.apple.springing.enabled -bool true
  133.  
  134. # Remove the spring loading delay for directories
  135. defaults write NSGlobalDomain com.apple.springing.delay -float 0
  136.  
  137. # Disable disk image verification
  138. defaults write com.apple.frameworks.diskimages skip-verify -bool true
  139. defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true
  140. defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
  141.  
  142. # Use list view in all Finder windows by default
  143. # Four-letter codes for the other view modes: `icnv`, `clmv`, `Flwv`
  144. defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
  145.  
  146.  
  147. # Disable the warning before emptying the Trash
  148. defaults write com.apple.finder WarnOnEmptyTrash -bool false
  149.  
  150. # Empty Trash securely by default
  151. defaults write com.apple.finder EmptyTrashSecurely -bool true
  152.  
  153. # Expand the following File Info panes:
  154. # “General”, “Open with”, and “Sharing & Permissions”
  155. defaults write com.apple.finder FXInfoPanesExpanded -dict \
  156.         General -bool true \
  157.         OpenWith -bool true \
  158.         Privileges -bool true
  159.  
  160.  
  161. # Automatically hide and show the Dock
  162. defaults write com.apple.dock autohide -bool true
  163.  
  164. # Hide dock
  165. defaults write com.apple.dock autohide-delay -float 9999999
  166.  
  167. # Minimize windows into their application’s icon
  168. defaults write com.apple.dock minimize-to-application -bool true
  169.  
  170. # Pin dock into corner
  171. defaults write com.apple.dock pinning -string start
  172.  
  173. # Enable spring loading for all Dock items
  174. defaults write com.apple.dock enable-spring-load-actions-on-all-items -bool true
  175.  
  176. # Don’t animate opening applications from the Dock
  177. defaults write com.apple.dock launchanim -bool false
  178.  
  179. # Speed up Mission Control animations
  180. defaults write com.apple.dock expose-animation-duration -float 0.1
  181.  
  182. # Don’t group windows by application in Mission Control
  183. # (i.e. use the old Exposé behavior instead)
  184. defaults write com.apple.dock expose-group-by-app -bool false
  185.  
  186. # Disable Dashboard
  187. defaults write com.apple.dashboard mcx-disabled -bool true
  188.  
  189. # Don’t show Dashboard as a Space
  190. defaults write com.apple.dock dashboard-in-overlay -bool true
  191.  
  192. # Don’t automatically rearrange Spaces based on most recent use
  193. defaults write com.apple.dock mru-spaces -bool false
  194.  
  195. #Disable stupid power button behavior on laptops
  196. defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool no
  197.  
  198. launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist
  199. launchctl unload -w /System/Library/LaunchAgents/com.apple.helpd.plist
  200. launchctl unload -w /System/Library/LaunchAgents/com.apple.imagent.plist
  201. launchctl unload -w /System/Library/LaunchAgents/com.apple.gamed.plist
  202.  
  203. #launchctl load -w ~/Library/LaunchAgents/local.killshadows.plist
  204. #launchctl load -w ~/Library/LaunchAgents/local.homeback.plist
  205. launchctl load -w ~/Library/LaunchAgents/com.flexget.plist
  206.  
  207. defaults write com.apple.LaunchServices LSQuarantine -bool NO
  208.  
  209. # Disable Stoplight
  210. #sudo mdutil -a -i off
  211. #sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search
  212. #killall SystemUIServer
  213.  
  214. # Do not throttle mobile CPU
  215. #sudo rm -rf /System/Library/Extensions/IOPlatformPluginFMillyly.kext
  216.  
  217. chflags nohidden Library
  218. chflags hidden Public
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top