Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 377 lines (273 sloc) 18.057 kb
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
1 # ~/.osx — http://mths.be/osx
2
3 ###############################################################################
4 # General UI/UX #
5 ###############################################################################
6
fc19665 @mathiasbynens .osx: Set computer name
authored
7 # Set computer name (as done via System Preferences → Sharing)
8 scutil --set ComputerName "MathBook Pro"
9 scutil --set HostName "MathBook Pro"
10 scutil --set LocalHostName "MathBook-Pro"
11
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
12 # Menu bar: disable transparency
f150692 @mathiasbynens Use `NSGlobalDomain` instead of `-g`.
authored
13 defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
7d02270 @mathiasbynens Initial commit.
authored
14
fc19665 @mathiasbynens .osx: Set computer name
authored
15 # Menu bar: show remaining battery time (on pre-10.8); hide percentage
91918d7 @mathiasbynens Show remaining battery time; hide percentage.
authored
16 defaults write com.apple.menuextra.battery ShowPercent -string "NO"
17 defaults write com.apple.menuextra.battery ShowTime -string "YES"
18
4e31acd @mathiasbynens .osx: Hide the useless Time Machine and Volume icons
authored
19 # Menu bar: hide the useless Time Machine and Volume icons
20 defaults write com.apple.systemuiserver menuExtras -array "/System/Library/CoreServices/Menu Extras/Bluetooth.menu" "/System/Library/CoreServices/Menu Extras/AirPort.menu" "/System/Library/CoreServices/Menu Extras/Battery.menu" "/System/Library/CoreServices/Menu Extras/Clock.menu"
21
45806ef @mathiasbynens Always show scrollbars.
authored
22 # Always show scrollbars
23 defaults write NSGlobalDomain AppleShowScrollBars -string "Always"
24
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
25 # Disable opening and closing window animations
26 defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
27
28 # Increase window resize speed for Cocoa applications
29 defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
30
7d02270 @mathiasbynens Initial commit.
authored
31 # Expand save panel by default
f150692 @mathiasbynens Use `NSGlobalDomain` instead of `-g`.
authored
32 defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
7d02270 @mathiasbynens Initial commit.
authored
33
34 # Expand print panel by default
f150692 @mathiasbynens Use `NSGlobalDomain` instead of `-g`.
authored
35 defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
7d02270 @mathiasbynens Initial commit.
authored
36
cdbb059 @mathiasbynens Disable the “Are you sure you want to open this application?” dialog.
authored
37 # Disable the “Are you sure you want to open this application?” dialog
38 defaults write com.apple.LaunchServices LSQuarantine -bool false
39
61163c8 @mathiasbynens .osx: Group commands by type
authored
40 # Display ASCII control characters using caret notation in standard text views
41 # Try e.g. `cd /tmp; unidecode "\x{0000}" > cc.txt; open -e cc.txt`
42 defaults write NSGlobalDomain NSTextShowsControlCharacters -bool true
7d02270 @mathiasbynens Initial commit.
authored
43
61163c8 @mathiasbynens .osx: Group commands by type
authored
44 # Disable Resume system-wide
45 defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false
6b3819f @mathiasbynens Show indicator lights for open applications in the Dock, and don’t anima...
authored
46
5b4e9d1 @mathiasbynens .osx: Disable automatic termination of inactive apps
authored
47 # Disable automatic termination of inactive apps
48 defaults write NSGlobalDomain NSDisableAutomaticTermination -bool true
49
61163c8 @mathiasbynens .osx: Group commands by type
authored
50 # Fix for the ancient UTF-8 bug in QuickLook (http://mths.be/bbo)
51 # Commented out, as this is known to cause problems when saving files in Adobe Illustrator CS5 :(
52 #echo "0x08000100:0" > ~/.CFUserTextEncoding
7134df8 @mathiasbynens .osx: Remove the auto-hiding Dock delay
authored
53
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
54 ###############################################################################
95ed1a1 @mathiasbynens .osx: Increase sound quality for Bluetooth headphones/headsets
authored
55 # Trackpad, mouse, keyboard, Bluetooth accessories, and input #
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
56 ###############################################################################
61163c8 @mathiasbynens .osx: Group commands by type
authored
57
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
58 # Trackpad: enable tap to click for this user and for the login screen
59 defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
60 defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
61 defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
62
63 # Trackpad: map bottom right corner to right-click
64 defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 2
65 defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -bool true
66 defaults -currentHost write NSGlobalDomain com.apple.trackpad.trackpadCornerClickBehavior -int 1
67 defaults -currentHost write NSGlobalDomain com.apple.trackpad.enableSecondaryClick -bool true
68
69 # Trackpad: swipe between pages with three fingers
f0ac658 @mathiasbynens .osx: Explicitly enable swipe between pages
authored
70 defaults write NSGlobalDomain AppleEnableSwipeNavigateWithScrolls -bool true
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
71 defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerHorizSwipeGesture -int 1
72 defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerHorizSwipeGesture -int 1
73
6a42419 @mathiasbynens .osx: Minor formatting tweak
authored
74 # Disable “natural” (Lion-style) scrolling
75 defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false
76
95ed1a1 @mathiasbynens .osx: Increase sound quality for Bluetooth headphones/headsets
authored
77 # Increase sound quality for Bluetooth headphones/headsets
78 defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" -int 40
79
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
80 # Enable full keyboard access for all controls
81 # (e.g. enable Tab in modal dialogs)
82 defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
83
a407d5d @mathiasbynens Add some more goodies to .osx.
authored
84 # Disable press-and-hold for keys in favor of key repeat
f150692 @mathiasbynens Use `NSGlobalDomain` instead of `-g`.
authored
85 defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
a407d5d @mathiasbynens Add some more goodies to .osx.
authored
86
7c46342 @mathiasbynens Set a blazingly fast keyboard repeat rate.
authored
87 # Set a blazingly fast keyboard repeat rate
88 defaults write NSGlobalDomain KeyRepeat -int 0
89
24045d9 @mathiasbynens .osx: Set language and text formats
authored
90 # Set language and text formats
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
91 # Note: if you’re in the US, replace `EUR` with `USD`, `Centimeters` with
92 # `Inches`, and `true` with `false`.
24045d9 @mathiasbynens .osx: Set language and text formats
authored
93 defaults write NSGlobalDomain AppleLanguages -array "en" "nl"
94 defaults write NSGlobalDomain AppleLocale -string "en_GB@currency=EUR"
95 defaults write NSGlobalDomain AppleMeasurementUnits -string "Centimeters"
96 defaults write NSGlobalDomain AppleMetricUnits -bool true
97
a407d5d @mathiasbynens Add some more goodies to .osx.
authored
98 # Disable auto-correct
99 defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
100
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
101 ###############################################################################
102 # Screen #
103 ###############################################################################
29ae35c @mathiasbynens .osx: Enable swipe between pages with three fingers
authored
104
61163c8 @mathiasbynens .osx: Group commands by type
authored
105 # Require password immediately after sleep or screen saver begins
106 defaults write com.apple.screensaver askForPassword -int 1
107 defaults write com.apple.screensaver askForPasswordDelay -int 0
108
7baa45c @mathiasbynens .osx: Clean up after commit 5b36bee8676dc8e800f68e3a559e102dcefcae36
authored
109 # Save screenshots to the desktop
110 defaults write com.apple.screencapture location -string "$HOME/Desktop"
111
112 # Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF)
113 defaults write com.apple.screencapture type -string "png"
114
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
115 # Disable shadow in screenshots
116 defaults write com.apple.screencapture disable-shadow -bool true
117
118 # Enable subpixel font rendering on non-Apple LCDs
119 defaults write NSGlobalDomain AppleFontSmoothing -int 2
120
121 ###############################################################################
122 # Finder #
123 ###############################################################################
124
125 # Finder: allow quitting via ⌘ + Q; doing so will also hide desktop icons
61163c8 @mathiasbynens .osx: Group commands by type
authored
126 defaults write com.apple.finder QuitMenuItem -bool true
127
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
128 # Finder: disable window animations and Get Info animations
61163c8 @mathiasbynens .osx: Group commands by type
authored
129 defaults write com.apple.finder DisableAllAnimations -bool true
130
e4d22ec @mathiasbynens .osx: Show icons for hard drives, servers, and removable media on the de...
authored
131 # Show icons for hard drives, servers, and removable media on the desktop
132 defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
133 defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true
134 defaults write com.apple.finder ShowMountedServersOnDesktop -bool true
135 defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true
136
c53f222 @mathiasbynens .osx: Show hidden files by default in Finder
authored
137 # Finder: show hidden files by default
138 defaults write com.apple.Finder AppleShowAllFiles -bool true
139
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
140 # Finder: show all filename extensions
61163c8 @mathiasbynens .osx: Group commands by type
authored
141 defaults write NSGlobalDomain AppleShowAllExtensions -bool true
142
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
143 # Finder: show status bar
61163c8 @mathiasbynens .osx: Group commands by type
authored
144 defaults write com.apple.finder ShowStatusBar -bool true
145
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
146 # Finder: allow text selection in Quick Look
61163c8 @mathiasbynens .osx: Group commands by type
authored
147 defaults write com.apple.finder QLEnableTextSelection -bool true
2433b1b @mathiasbynens Enable AirDrop over Ethernet and on unsupported Macs running OS X Lion.
authored
148
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
149 # Display full POSIX path as Finder window title
150 defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
151
152 # Disable the warning when changing a file extension
153 defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
154
155 # Avoid creating .DS_Store files on network volumes
156 defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
157
a407d5d @mathiasbynens Add some more goodies to .osx.
authored
158 # Disable disk image verification
159 defaults write com.apple.frameworks.diskimages skip-verify -bool true
160 defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true
161 defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
162
163 # Automatically open a new Finder window when a volume is mounted
164 defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
165 defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
166 defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
a407d5d @mathiasbynens Add some more goodies to .osx.
authored
167
a168e93 @mathiasbynens .osx: Add more Finder settings for icons on the desktop and in icon view...
authored
168 # Show item info below icons on the desktop and in other icon views
ba9b8b8 @mathiasbynens Use full PlistBuddy path instead of the alias, so `.osx` can be used sta...
authored
169 /usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist
a168e93 @mathiasbynens .osx: Add more Finder settings for icons on the desktop and in icon view...
authored
170 /usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist
171 /usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist
9bb2dce @mathiasbynens Show item info below desktop icons.
authored
172
a168e93 @mathiasbynens .osx: Add more Finder settings for icons on the desktop and in icon view...
authored
173 # Enable snap-to-grid for icons on the desktop and in other icon views
dda45e2 @mathiasbynens .osx: Enable snap-to-grid for desktop icons
authored
174 /usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
a168e93 @mathiasbynens .osx: Add more Finder settings for icons on the desktop and in icon view...
authored
175 /usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
176 /usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
177
178 # Increase grid spacing for icons on the desktop and in other icon views
179 /usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:gridSpacing 100" ~/Library/Preferences/com.apple.finder.plist
180 /usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:gridSpacing 100" ~/Library/Preferences/com.apple.finder.plist
181 /usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:gridSpacing 100" ~/Library/Preferences/com.apple.finder.plist
182
183 # Increase the size of icons on the desktop and in other icon views
184 /usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:iconSize 80" ~/Library/Preferences/com.apple.finder.plist
185 /usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:iconSize 80" ~/Library/Preferences/com.apple.finder.plist
186 /usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:iconSize 80" ~/Library/Preferences/com.apple.finder.plist
dda45e2 @mathiasbynens .osx: Enable snap-to-grid for desktop icons
authored
187
df46055 @mathiasbynens Disable the warning before emptying the Trash.
authored
188 # Disable the warning before emptying the Trash
189 defaults write com.apple.finder WarnOnEmptyTrash -bool false
190
51fba19 @mathiasbynens Empty Trash securely by default.
authored
191 # Empty Trash securely by default
192 defaults write com.apple.finder EmptyTrashSecurely -bool true
193
61163c8 @mathiasbynens .osx: Group commands by type
authored
194 # Enable AirDrop over Ethernet and on unsupported Macs running Lion
195 defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true
b8fbd68 @mathiasbynens Require password immediately after sleep or screen saver begins. (Can al...
authored
196
61163c8 @mathiasbynens .osx: Group commands by type
authored
197 # Show the ~/Library folder
198 chflags nohidden ~/Library
50c583f @mathiasbynens Enable tap to click (Trackpad).
authored
199
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
200 # Remove Dropbox’s green checkmark icons in Finder
201 file=/Applications/Dropbox.app/Contents/Resources/check.icns
202 [ -e "$file" ] && mv -f "$file" "$file.bak"
203 unset file
204
205 ###############################################################################
206 # Dock & hot corners #
207 ###############################################################################
6e45fac @mathiasbynens .osx: Add hot corners
authored
208
61163c8 @mathiasbynens .osx: Group commands by type
authored
209 # Enable highlight hover effect for the grid view of a stack (Dock)
210 defaults write com.apple.dock mouse-over-hilte-stack -bool true
211
9898899 @mathiasbynens .osx: Set the icon size of Dock items to 36 pixels
authored
212 # Set the icon size of Dock items to 36 pixels
213 defaults write com.apple.dock tilesize -int 36
c8e40aa Icon size of 48 pixels for dock items
Cedric Kastner authored
214
61163c8 @mathiasbynens .osx: Group commands by type
authored
215 # Enable spring loading for all Dock items
216 defaults write com.apple.dock enable-spring-load-actions-on-all-items -bool true
217
218 # Show indicator lights for open applications in the Dock
219 defaults write com.apple.dock show-process-indicators -bool true
220
221 # Don’t animate opening applications from the Dock
222 defaults write com.apple.dock launchanim -bool false
223
22ecf0a @mathiasbynens .osx: Speed up Mission Control animations
authored
224 # Speed up Mission Control animations
225 defaults write com.apple.dock expose-animation-duration -float 0.1
226
205b8b1 @mathiasbynens .osx: Don’t show Dashboard as a Space
authored
227 # Don’t show Dashboard as a Space
228 defaults write com.apple.dock "dashboard-in-overlay" -bool true
229
61163c8 @mathiasbynens .osx: Group commands by type
authored
230 # Remove the auto-hiding Dock delay
231 defaults write com.apple.Dock autohide-delay -float 0
4623943 @mathiasbynens .osx: Cleanup
authored
232 # Remove the animation when hiding/showing the Dock
233 defaults write com.apple.dock autohide-time-modifier -float 0
f60e3e6 @nimbling # Shorten Dock show animation speed
nimbling authored
234
61163c8 @mathiasbynens .osx: Group commands by type
authored
235 # Enable the 2D Dock
2d0737e @mathiasbynens .osx: Comment out the line that enables the 2D Dock
authored
236 #defaults write com.apple.dock no-glass -bool true
61163c8 @mathiasbynens .osx: Group commands by type
authored
237
238 # Automatically hide and show the Dock
239 defaults write com.apple.dock autohide -bool true
240
241 # Make Dock icons of hidden applications translucent
242 defaults write com.apple.dock showhidden -bool true
243
244 # Enable iTunes track notifications in the Dock
245 defaults write com.apple.dock itunes-notifications -bool true
246
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
247 # Reset Launchpad
248 find ~/Library/Application\ Support/Dock -name "*.db" -maxdepth 1 -delete
249
61163c8 @mathiasbynens .osx: Group commands by type
authored
250 # Add a spacer to the left side of the Dock (where the applications are)
251 #defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
252 # Add a spacer to the right side of the Dock (where the Trash is)
253 #defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="spacer-tile";}'
254
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
255 # Hot corners
256 # Top left screen corner → Mission Control
257 defaults write com.apple.dock wvous-tl-corner -int 2
258 defaults write com.apple.dock wvous-tl-modifier -int 0
259 # Top right screen corner → Desktop
260 defaults write com.apple.dock wvous-tr-corner -int 4
261 defaults write com.apple.dock wvous-tr-modifier -int 0
262 # Bottom left screen corner → Start screen saver
263 defaults write com.apple.dock wvous-bl-corner -int 5
264 defaults write com.apple.dock wvous-bl-modifier -int 0
265
266 ###############################################################################
267 # Safari & WebKit #
268 ###############################################################################
1ab9402 @mathiasbynens Map bottom right Trackpad corner to secondary click (right-click).
authored
269
7d02270 @mathiasbynens Initial commit.
authored
270 # Disable Safari’s thumbnail cache for History and Top Sites
271 defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2
272
558b2c4 @mathiasbynens Enable Safari’s debug menu.
authored
273 # Enable Safari’s debug menu
fc439ad @mathiasbynens Looks like `IncludeDebugMenu` was replaced by `IncludeInternalDebugMenu`...
authored
274 defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
558b2c4 @mathiasbynens Enable Safari’s debug menu.
authored
275
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
276 # Make Safari’s search banners default to Contains instead of Starts With
277 defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false
278
7d02270 @mathiasbynens Initial commit.
authored
279 # Remove useless icons from Safari’s bookmarks bar
280 defaults write com.apple.Safari ProxiesInBookmarksBar "()"
281
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
282 # Add a context menu item for showing the Web Inspector in web views
283 defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
72860be @mathiasbynens .osx: Enable the debug menu in iCal and Address Book
authored
284
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
285 ###############################################################################
45676de @mathiasbynens .osx: Enable the debug menu in Disk Utility
authored
286 # Address Book, Dashboard, iCal, iTunes, Mail, and Disk Utility #
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
287 ###############################################################################
288
72860be @mathiasbynens .osx: Enable the debug menu in iCal and Address Book
authored
289 # Enable the debug menu in Address Book
290 defaults write com.apple.addressbook ABShowDebugMenu -bool true
291
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
292 # Enable Dashboard dev mode (allows keeping widgets on the desktop)
293 defaults write com.apple.dashboard devmode -bool true
294
72860be @mathiasbynens .osx: Enable the debug menu in iCal and Address Book
authored
295 # Enable the debug menu in iCal
296 defaults write com.apple.iCal IncludeDebugMenu -bool true
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
297
289c3ea @mathiasbynens .osx: Disable the iTunes arrow links completely
authored
298 # Make the iTunes arrow links go to your library instead of the iTunes Store
299 defaults write com.apple.iTunes invertStoreLinks -bool true
300
301 # Disable the iTunes arrow links completely
302 defaults write com.apple.iTunes show-store-arrow-links -bool false
6c2be0e @kevinlawler .osx: Make iTunes arrows go to your library by default (rather than the ...
kevinlawler authored
303
17c5050 @mathiasbynens Disable the Ping sidebar in iTunes.
authored
304 # Disable the Ping sidebar in iTunes
305 defaults write com.apple.iTunes disablePingSidebar -bool true
306
36c4597 @mathiasbynens Disable Ping entirely.
authored
307 # Disable all the other Ping stuff in iTunes
308 defaults write com.apple.iTunes disablePing -bool true
309
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
310 # Make ⌘ + F focus the search input in iTunes
311 defaults write com.apple.iTunes NSUserKeyEquivalents -dict-add "Target Search Field" "@F"
312
a407d5d @mathiasbynens Add some more goodies to .osx.
authored
313 # Disable send and reply animations in Mail.app
314 defaults write com.apple.Mail DisableReplyAnimations -bool true
315 defaults write com.apple.Mail DisableSendAnimations -bool true
7d02270 @mathiasbynens Initial commit.
authored
316
42f7f7b @mathiasbynens .osx: Copy email addresses as `foo@example.com` instead of `Foo Bar <foo...
authored
317 # Copy email addresses as `foo@example.com` instead of `Foo Bar <foo@example.com>` in Mail.app
318 defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false
319
45676de @mathiasbynens .osx: Enable the debug menu in Disk Utility
authored
320 # Enable the debug menu in Disk Utility
321 defaults write com.apple.DiskUtility DUDebugMenuEnabled -bool true
322
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
323 ###############################################################################
324 # Terminal #
325 ###############################################################################
5be688e @jpsirois Remove the disturbing ".dmg" Mounting Verification
jpsirois authored
326
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
327 # Only use UTF-8 in Terminal.app
328 defaults write com.apple.terminal StringEncodings -array 4
329
330 # Enable “focus follows mouse” for Terminal.app and all X11 apps
331 # This means you can hover over a window and start typing in it without clicking first
332 #defaults write com.apple.terminal FocusFollowsMouse -bool true
333 #defaults write org.x.X11 wm_ffm -bool true
334
335 ###############################################################################
336 # Time Machine #
337 ###############################################################################
7d02270 @mathiasbynens Initial commit.
authored
338
997cb32 @mathiasbynens .osx: Prevent Time Machine from prompting to use new hard drives as back...
authored
339 # Prevent Time Machine from prompting to use new hard drives as backup volume
340 defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
341
7d02270 @mathiasbynens Initial commit.
authored
342 # Disable local Time Machine backups
439e6f5 @mathiasbynens Check if `tmutil` is available before using it. (It’s not available on S...
authored
343 hash tmutil &> /dev/null && sudo tmutil disablelocal
7d02270 @mathiasbynens Initial commit.
authored
344
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
345 ###############################################################################
050b7ca @mathiasbynens .osx: Add Twitter.app settings
authored
346 # Twitter.app #
347 ###############################################################################
348
349 # Disable smart quotes as it’s annoying for code tweets
350 defaults write com.twitter.twitter-mac AutomaticQuoteSubstitutionEnabled -bool false
351
352 # Show the app window when clicking the menu icon
353 defaults write com.twitter.twitter-mac MenuItemBehavior -int 1
354
355 # Enable the hidden ‘Develop’ menu
356 defaults write com.twitter.twitter-mac ShowDevelopMenu -bool true
357
358 # Open links in the background
359 defaults write com.twitter.twitter-mac openLinksInBackground -bool true
360
361 # Allow closing the ‘new tweet’ window by pressing `Esc`
362 defaults write com.twitter.twitter-mac ESCClosesComposeWindow -bool true
363
364 # Show full names rather than Twitter handles
365 defaults write com.twitter.twitter-mac ShowFullNames -bool true
366
367 # Hide the app in the background if it’s not the front-most window
368 defaults write com.twitter.twitter-mac HideInBackground -bool true
369
370 ###############################################################################
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
371 # Kill affected applications #
372 ###############################################################################
59c2863 @mathiasbynens Remove the green checkmark icons in Dropbox.
authored
373
050b7ca @mathiasbynens .osx: Add Twitter.app settings
authored
374 for app in Finder Dock Mail Safari iTunes iCal Address\ Book SystemUIServer Twitter; do
6a42419 @mathiasbynens .osx: Minor formatting tweak
authored
375 killall "$app" > /dev/null 2>&1
376 done
7baa45c @mathiasbynens .osx: Clean up after commit 5b36bee8676dc8e800f68e3a559e102dcefcae36
authored
377 echo "Done. Note that some of these changes require a logout/restart to take effect."
Something went wrong with that request. Please try again.