Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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