Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 404 lines (293 sloc) 19.429 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
66911ae @mathiasbynens .osx: Group windows by application in Mission Control
authored
234 # Group windows by application in Mission Control
235 defaults write com.apple.dock "expose-group-by-app" -bool true
236
205b8b1 @mathiasbynens .osx: Don’t show Dashboard as a Space
authored
237 # Don’t show Dashboard as a Space
238 defaults write com.apple.dock "dashboard-in-overlay" -bool true
239
61163c8 @mathiasbynens .osx: Group commands by type
authored
240 # Remove the auto-hiding Dock delay
241 defaults write com.apple.Dock autohide-delay -float 0
4623943 @mathiasbynens .osx: Cleanup
authored
242 # Remove the animation when hiding/showing the Dock
243 defaults write com.apple.dock autohide-time-modifier -float 0
f60e3e6 @nimbling # Shorten Dock show animation speed
nimbling authored
244
61163c8 @mathiasbynens .osx: Group commands by type
authored
245 # Enable the 2D Dock
2d0737e @mathiasbynens .osx: Comment out the line that enables the 2D Dock
authored
246 #defaults write com.apple.dock no-glass -bool true
61163c8 @mathiasbynens .osx: Group commands by type
authored
247
248 # Automatically hide and show the Dock
249 defaults write com.apple.dock autohide -bool true
250
251 # Make Dock icons of hidden applications translucent
252 defaults write com.apple.dock showhidden -bool true
253
254 # Enable iTunes track notifications in the Dock
255 defaults write com.apple.dock itunes-notifications -bool true
256
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
257 # Reset Launchpad
258 find ~/Library/Application\ Support/Dock -name "*.db" -maxdepth 1 -delete
259
61163c8 @mathiasbynens .osx: Group commands by type
authored
260 # Add a spacer to the left side of the Dock (where the applications are)
261 #defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
262 # Add a spacer to the right side of the Dock (where the Trash is)
263 #defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="spacer-tile";}'
264
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
265 # Hot corners
266 # Top left screen corner → Mission Control
267 defaults write com.apple.dock wvous-tl-corner -int 2
268 defaults write com.apple.dock wvous-tl-modifier -int 0
269 # Top right screen corner → Desktop
270 defaults write com.apple.dock wvous-tr-corner -int 4
271 defaults write com.apple.dock wvous-tr-modifier -int 0
272 # Bottom left screen corner → Start screen saver
273 defaults write com.apple.dock wvous-bl-corner -int 5
274 defaults write com.apple.dock wvous-bl-modifier -int 0
275
276 ###############################################################################
277 # Safari & WebKit #
278 ###############################################################################
1ab9402 @mathiasbynens Map bottom right Trackpad corner to secondary click (right-click).
authored
279
f2975b1 @mathiasbynens .osx: Allow hitting the Backspace key to go to the previous page in S…
authored
280 # Allow hitting the Backspace key to go to the previous page in history
281 defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2BackspaceKeyNavigationEnabled -bool true
282
390d0fd @mathiasbynens .osx: Hide Safari’s bookmarks bar by default
authored
283 # Hide Safari’s bookmarks bar by default
284 defaults write com.apple.Safari ShowFavoritesBar -bool false
285
7d02270 @mathiasbynens Initial commit.
authored
286 # Disable Safari’s thumbnail cache for History and Top Sites
287 defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2
288
558b2c4 @mathiasbynens Enable Safari’s debug menu.
authored
289 # Enable Safari’s debug menu
fc439ad @mathiasbynens Looks like `IncludeDebugMenu` was replaced by `IncludeInternalDebugMe…
authored
290 defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
558b2c4 @mathiasbynens Enable Safari’s debug menu.
authored
291
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
292 # Make Safari’s search banners default to Contains instead of Starts With
293 defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false
294
7d02270 @mathiasbynens Initial commit.
authored
295 # Remove useless icons from Safari’s bookmarks bar
296 defaults write com.apple.Safari ProxiesInBookmarksBar "()"
297
93bb039 @mathiasbynens .osx: Enable the Develop Menu and the Web Inspector in Safari
authored
298 # Enable the Develop menu and the Web Inspector in Safari
299 defaults write com.apple.Safari IncludeDevelopMenu -bool true
300 defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
301 defaults write com.apple.Safari "com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled" -bool true
302
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
303 # Add a context menu item for showing the Web Inspector in web views
304 defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
72860be @mathiasbynens .osx: Enable the debug menu in iCal and Address Book
authored
305
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
306 ###############################################################################
45676de @mathiasbynens .osx: Enable the debug menu in Disk Utility
authored
307 # Address Book, Dashboard, iCal, iTunes, Mail, and Disk Utility #
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
308 ###############################################################################
309
72860be @mathiasbynens .osx: Enable the debug menu in iCal and Address Book
authored
310 # Enable the debug menu in Address Book
311 defaults write com.apple.addressbook ABShowDebugMenu -bool true
312
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
313 # Enable Dashboard dev mode (allows keeping widgets on the desktop)
314 defaults write com.apple.dashboard devmode -bool true
315
72860be @mathiasbynens .osx: Enable the debug menu in iCal and Address Book
authored
316 # Enable the debug menu in iCal
317 defaults write com.apple.iCal IncludeDebugMenu -bool true
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
318
289c3ea @mathiasbynens .osx: Disable the iTunes arrow links completely
authored
319 # Make the iTunes arrow links go to your library instead of the iTunes Store
320 defaults write com.apple.iTunes invertStoreLinks -bool true
321
322 # Disable the iTunes arrow links completely
323 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
324
17c5050 @mathiasbynens Disable the Ping sidebar in iTunes.
authored
325 # Disable the Ping sidebar in iTunes
326 defaults write com.apple.iTunes disablePingSidebar -bool true
327
36c4597 @mathiasbynens Disable Ping entirely.
authored
328 # Disable all the other Ping stuff in iTunes
329 defaults write com.apple.iTunes disablePing -bool true
330
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
331 # Make ⌘ + F focus the search input in iTunes
332 defaults write com.apple.iTunes NSUserKeyEquivalents -dict-add "Target Search Field" "@F"
333
a407d5d @mathiasbynens Add some more goodies to .osx.
authored
334 # Disable send and reply animations in Mail.app
335 defaults write com.apple.Mail DisableReplyAnimations -bool true
336 defaults write com.apple.Mail DisableSendAnimations -bool true
7d02270 @mathiasbynens Initial commit.
authored
337
42f7f7b @mathiasbynens .osx: Copy email addresses as `foo@example.com` instead of `Foo Bar <…
authored
338 # Copy email addresses as `foo@example.com` instead of `Foo Bar <foo@example.com>` in Mail.app
339 defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false
340
45676de @mathiasbynens .osx: Enable the debug menu in Disk Utility
authored
341 # Enable the debug menu in Disk Utility
342 defaults write com.apple.DiskUtility DUDebugMenuEnabled -bool true
343
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
344 ###############################################################################
345 # Terminal #
346 ###############################################################################
5be688e @jpsirois Remove the disturbing ".dmg" Mounting Verification
jpsirois authored
347
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
348 # Only use UTF-8 in Terminal.app
349 defaults write com.apple.terminal StringEncodings -array 4
350
d141e2c @mathiasbynens .osx: Use a modified version of the Pro theme in Terminal.app
authored
351 # Use a modified version of the Pro theme by default in Terminal.app
352 open "$HOME/init/Mathias.terminal"
353 sleep 1 # Wait a bit to make sure the theme is loaded
354 defaults write com.apple.Terminal "Default Window Settings" -string "Mathias"
355 defaults write com.apple.Terminal "Startup Window Settings" -string "Mathias"
772506c @mathiasbynens .osx: Use the Pro theme by default in Terminal.app
authored
356
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
357 # Enable “focus follows mouse” for Terminal.app and all X11 apps
358 # This means you can hover over a window and start typing in it without clicking first
359 #defaults write com.apple.terminal FocusFollowsMouse -bool true
360 #defaults write org.x.X11 wm_ffm -bool true
361
362 ###############################################################################
363 # Time Machine #
364 ###############################################################################
7d02270 @mathiasbynens Initial commit.
authored
365
997cb32 @mathiasbynens .osx: Prevent Time Machine from prompting to use new hard drives as b…
authored
366 # Prevent Time Machine from prompting to use new hard drives as backup volume
367 defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
368
7d02270 @mathiasbynens Initial commit.
authored
369 # Disable local Time Machine backups
439e6f5 @mathiasbynens Check if `tmutil` is available before using it. (It’s not available o…
authored
370 hash tmutil &> /dev/null && sudo tmutil disablelocal
7d02270 @mathiasbynens Initial commit.
authored
371
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
372 ###############################################################################
050b7ca @mathiasbynens .osx: Add Twitter.app settings
authored
373 # Twitter.app #
374 ###############################################################################
375
376 # Disable smart quotes as it’s annoying for code tweets
377 defaults write com.twitter.twitter-mac AutomaticQuoteSubstitutionEnabled -bool false
378
379 # Show the app window when clicking the menu icon
380 defaults write com.twitter.twitter-mac MenuItemBehavior -int 1
381
382 # Enable the hidden ‘Develop’ menu
383 defaults write com.twitter.twitter-mac ShowDevelopMenu -bool true
384
385 # Open links in the background
386 defaults write com.twitter.twitter-mac openLinksInBackground -bool true
387
388 # Allow closing the ‘new tweet’ window by pressing `Esc`
389 defaults write com.twitter.twitter-mac ESCClosesComposeWindow -bool true
390
391 # Show full names rather than Twitter handles
392 defaults write com.twitter.twitter-mac ShowFullNames -bool true
393
394 # Hide the app in the background if it’s not the front-most window
395 defaults write com.twitter.twitter-mac HideInBackground -bool true
396
397 ###############################################################################
44ab4cf @mathiasbynens .osx: Group commands in categories
authored
398 # Kill affected applications #
399 ###############################################################################
59c2863 @mathiasbynens Remove the green checkmark icons in Dropbox.
authored
400
050b7ca @mathiasbynens .osx: Add Twitter.app settings
authored
401 for app in Finder Dock Mail Safari iTunes iCal Address\ Book SystemUIServer Twitter; do
6a42419 @mathiasbynens .osx: Minor formatting tweak
authored
402 killall "$app" > /dev/null 2>&1
403 done
7baa45c @mathiasbynens .osx: Clean up after commit 5b36bee8676dc8e800f68e3a559e102dcefcae36
authored
404 echo "Done. Note that some of these changes require a logout/restart to take effect."
Something went wrong with that request. Please try again.