Skip to content

HTTPS clone URL

Subversion checkout URL

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