Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 243 lines (174 sloc) 10.541 kB
7d02270 @mathiasbynens Initial commit.
authored
1 # Disable menu bar transparency
f150692 @mathiasbynens Use `NSGlobalDomain` instead of `-g`.
authored
2 defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
7d02270 @mathiasbynens Initial commit.
authored
3
91918d7 @mathiasbynens Show remaining battery time; hide percentage.
authored
4 # Show remaining battery time; hide percentage
5 defaults write com.apple.menuextra.battery ShowPercent -string "NO"
6 defaults write com.apple.menuextra.battery ShowTime -string "YES"
7
45806ef @mathiasbynens Always show scrollbars.
authored
8 # Always show scrollbars
9 defaults write NSGlobalDomain AppleShowScrollBars -string "Always"
10
7d02270 @mathiasbynens Initial commit.
authored
11 # Expand save panel by default
f150692 @mathiasbynens Use `NSGlobalDomain` instead of `-g`.
authored
12 defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
7d02270 @mathiasbynens Initial commit.
authored
13
14 # Expand print panel by default
f150692 @mathiasbynens Use `NSGlobalDomain` instead of `-g`.
authored
15 defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
7d02270 @mathiasbynens Initial commit.
authored
16
cdbb059 @mathiasbynens Disable the “Are you sure you want to open this application?” dialog.
authored
17 # Disable the “Are you sure you want to open this application?” dialog
18 defaults write com.apple.LaunchServices LSQuarantine -bool false
19
61163c8 @mathiasbynens .osx: Group commands by type
authored
20 # Display ASCII control characters using caret notation in standard text views
21 # Try e.g. `cd /tmp; unidecode "\x{0000}" > cc.txt; open -e cc.txt`
22 defaults write NSGlobalDomain NSTextShowsControlCharacters -bool true
7d02270 @mathiasbynens Initial commit.
authored
23
61163c8 @mathiasbynens .osx: Group commands by type
authored
24 # Disable opening and closing window animations
25 defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
a4a0fa1 @gburtini Added enable-spring-load-actions-on-all-items -bool true
gburtini authored
26
61163c8 @mathiasbynens .osx: Group commands by type
authored
27 # Increase window resize speed for Cocoa applications
28 defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
7d02270 @mathiasbynens Initial commit.
authored
29
61163c8 @mathiasbynens .osx: Group commands by type
authored
30 # Disable Resume system-wide
31 defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false
6b3819f @mathiasbynens Show indicator lights for open applications in the Dock, and don’t an…
authored
32
61163c8 @mathiasbynens .osx: Group commands by type
authored
33 # Disable the “reopen windows when logging back in” option
34 # This works, although the checkbox will still appear to be checked,
35 # and the command needs to be entered again for every restart.
36 defaults write com.apple.loginwindow TALLogoutSavesState -bool false
37 defaults write com.apple.loginwindow LoginwindowLaunchesRelaunchApps -bool false
6b3819f @mathiasbynens Show indicator lights for open applications in the Dock, and don’t an…
authored
38
61163c8 @mathiasbynens .osx: Group commands by type
authored
39 # Fix for the ancient UTF-8 bug in QuickLook (http://mths.be/bbo)
40 # Commented out, as this is known to cause problems when saving files in Adobe Illustrator CS5 :(
41 #echo "0x08000100:0" > ~/.CFUserTextEncoding
7134df8 @mathiasbynens .osx: Remove the auto-hiding Dock delay
authored
42
61163c8 @mathiasbynens .osx: Group commands by type
authored
43 # Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)
44 defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
45
46 # Enable subpixel font rendering on non-Apple LCDs
47 defaults write NSGlobalDomain AppleFontSmoothing -int 2
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
48
a407d5d @mathiasbynens Add some more goodies to .osx.
authored
49 # Disable press-and-hold for keys in favor of key repeat
f150692 @mathiasbynens Use `NSGlobalDomain` instead of `-g`.
authored
50 defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
a407d5d @mathiasbynens Add some more goodies to .osx.
authored
51
7c46342 @mathiasbynens Set a blazingly fast keyboard repeat rate.
authored
52 # Set a blazingly fast keyboard repeat rate
53 defaults write NSGlobalDomain KeyRepeat -int 0
54
a407d5d @mathiasbynens Add some more goodies to .osx.
authored
55 # Disable auto-correct
56 defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
57
91cd631 @mathiasbynens .osx: Make Trackpad settings more robust
authored
58 # Enable tap to click (Trackpad) for this user and for the login screen
61163c8 @mathiasbynens .osx: Group commands by type
authored
59 defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
91cd631 @mathiasbynens .osx: Make Trackpad settings more robust
authored
60 defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
61 defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
a407d5d @mathiasbynens Add some more goodies to .osx.
authored
62
61163c8 @mathiasbynens .osx: Group commands by type
authored
63 # Map bottom right Trackpad 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
91cd631 @mathiasbynens .osx: Make Trackpad settings more robust
authored
66 defaults -currentHost write NSGlobalDomain com.apple.trackpad.trackpadCornerClickBehavior -int 1
67 defaults -currentHost write NSGlobalDomain com.apple.trackpad.enableSecondaryClick -bool true
61163c8 @mathiasbynens .osx: Group commands by type
authored
68
69 # Require password immediately after sleep or screen saver begins
70 defaults write com.apple.screensaver askForPassword -int 1
71 defaults write com.apple.screensaver askForPasswordDelay -int 0
72
7baa45c @mathiasbynens .osx: Clean up after commit 5b36bee8676dc8e800f68e3a559e102dcefcae36
authored
73 # Save screenshots to the desktop
74 defaults write com.apple.screencapture location -string "$HOME/Desktop"
75
76 # Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF)
77 defaults write com.apple.screencapture type -string "png"
78
61163c8 @mathiasbynens .osx: Group commands by type
authored
79 # Allow quitting Finder via ⌘ + Q; doing so will also hide desktop icons
80 defaults write com.apple.finder QuitMenuItem -bool true
81
82 # Disable window animations and Get Info animations in Finder
83 defaults write com.apple.finder DisableAllAnimations -bool true
84
85 # Show all filename extensions in Finder
86 defaults write NSGlobalDomain AppleShowAllExtensions -bool true
87
88 # Show status bar in Finder
89 defaults write com.apple.finder ShowStatusBar -bool true
90
91 # Allow text selection in Quick Look
92 defaults write com.apple.finder QLEnableTextSelection -bool true
2433b1b @mathiasbynens Enable AirDrop over Ethernet and on unsupported Macs running OS X Lion.
authored
93
a407d5d @mathiasbynens Add some more goodies to .osx.
authored
94 # Disable disk image verification
95 defaults write com.apple.frameworks.diskimages skip-verify -bool true
96 defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true
97 defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
98
99 # Automatically open a new Finder window when a volume is mounted
100 defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
101 defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
102 defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
a407d5d @mathiasbynens Add some more goodies to .osx.
authored
103
2bb5745 @mathiasbynens Minor cleanup.
authored
104 # Display full POSIX path as Finder window title
df4eb65 @mathiasbynens Fix typo.
authored
105 defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
8422565 @iloveitaly Posix path in finder title, sheet speed, hidden application's icons a…
iloveitaly authored
106
18044c4 @mathiasbynens Avoid creating .DS_Store files on network volumes.
authored
107 # Avoid creating .DS_Store files on network volumes
108 defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
109
b6ff03a @mathiasbynens Disable the warning when changing a file extension.
authored
110 # Disable the warning when changing a file extension
111 defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
112
9bb2dce @mathiasbynens Show item info below desktop icons.
authored
113 # Show item info below desktop icons
ba9b8b8 @mathiasbynens Use full PlistBuddy path instead of the alias, so `.osx` can be used …
authored
114 /usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist
9bb2dce @mathiasbynens Show item info below desktop icons.
authored
115
dda45e2 @mathiasbynens .osx: Enable snap-to-grid for desktop icons
authored
116 # Enable snap-to-grid for desktop icons
117 /usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
118
df46055 @mathiasbynens Disable the warning before emptying the Trash.
authored
119 # Disable the warning before emptying the Trash
120 defaults write com.apple.finder WarnOnEmptyTrash -bool false
121
51fba19 @mathiasbynens Empty Trash securely by default.
authored
122 # Empty Trash securely by default
123 defaults write com.apple.finder EmptyTrashSecurely -bool true
124
61163c8 @mathiasbynens .osx: Group commands by type
authored
125 # Enable AirDrop over Ethernet and on unsupported Macs running Lion
126 defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true
b8fbd68 @mathiasbynens Require password immediately after sleep or screen saver begins. (Can…
authored
127
61163c8 @mathiasbynens .osx: Group commands by type
authored
128 # Show the ~/Library folder
129 chflags nohidden ~/Library
50c583f @mathiasbynens Enable tap to click (Trackpad).
authored
130
6e45fac @mathiasbynens .osx: Add hot corners
authored
131 # Hot corners
132 # Top left screen corner → Mission Control
133 defaults write com.apple.dock wvous-tl-corner -int 2
134 defaults write com.apple.dock wvous-tl-modifier -int 0
135 # Top right screen corner → Desktop
136 defaults write com.apple.dock wvous-tr-corner -int 4
137 defaults write com.apple.dock wvous-tr-modifier -int 0
138 # Bottom left screen corner → Start screen saver
139 defaults write com.apple.dock wvous-bl-corner -int 5
140 defaults write com.apple.dock wvous-bl-modifier -int 0
141
61163c8 @mathiasbynens .osx: Group commands by type
authored
142 # Enable highlight hover effect for the grid view of a stack (Dock)
143 defaults write com.apple.dock mouse-over-hilte-stack -bool true
144
145 # Enable spring loading for all Dock items
146 defaults write com.apple.dock enable-spring-load-actions-on-all-items -bool true
147
148 # Show indicator lights for open applications in the Dock
149 defaults write com.apple.dock show-process-indicators -bool true
150
151 # Don’t animate opening applications from the Dock
152 defaults write com.apple.dock launchanim -bool false
153
154 # Remove the auto-hiding Dock delay
155 defaults write com.apple.Dock autohide-delay -float 0
4623943 @mathiasbynens .osx: Cleanup
authored
156 # Remove the animation when hiding/showing the Dock
157 defaults write com.apple.dock autohide-time-modifier -float 0
f60e3e6 @nimbling # Shorten Dock show animation speed
nimbling authored
158
61163c8 @mathiasbynens .osx: Group commands by type
authored
159 # Enable the 2D Dock
160 defaults write com.apple.dock no-glass -bool true
161
162 # Automatically hide and show the Dock
163 defaults write com.apple.dock autohide -bool true
164
165 # Make Dock icons of hidden applications translucent
166 defaults write com.apple.dock showhidden -bool true
167
168 # Enable iTunes track notifications in the Dock
169 defaults write com.apple.dock itunes-notifications -bool true
170
171 # Add a spacer to the left side of the Dock (where the applications are)
172 #defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
173 # Add a spacer to the right side of the Dock (where the Trash is)
174 #defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="spacer-tile";}'
175
176 # Disable shadow in screenshots
177 defaults write com.apple.screencapture disable-shadow -bool true
1ab9402 @mathiasbynens Map bottom right Trackpad corner to secondary click (right-click).
authored
178
7d02270 @mathiasbynens Initial commit.
authored
179 # Disable Safari’s thumbnail cache for History and Top Sites
180 defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2
181
558b2c4 @mathiasbynens Enable Safari’s debug menu.
authored
182 # Enable Safari’s debug menu
fc439ad @mathiasbynens Looks like `IncludeDebugMenu` was replaced by `IncludeInternalDebugMe…
authored
183 defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
558b2c4 @mathiasbynens Enable Safari’s debug menu.
authored
184
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
185 # Make Safari’s search banners default to Contains instead of Starts With
186 defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false
187
7d02270 @mathiasbynens Initial commit.
authored
188 # Remove useless icons from Safari’s bookmarks bar
189 defaults write com.apple.Safari ProxiesInBookmarksBar "()"
190
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
191 # Add a context menu item for showing the Web Inspector in web views
192 defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
72860be @mathiasbynens .osx: Enable the debug menu in iCal and Address Book
authored
193
194 # Enable the debug menu in Address Book
195 defaults write com.apple.addressbook ABShowDebugMenu -bool true
196
197 # Enable the debug menu in iCal
198 defaults write com.apple.iCal IncludeDebugMenu -bool true
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
199
83adc55 @mathiasbynens Only use UTF-8 in Terminal.app.
authored
200 # Only use UTF-8 in Terminal.app
201 defaults write com.apple.terminal StringEncodings -array 4
202
fb16c91 @mathiasbynens .osx: Add “focus follows mouse” commands for Terminal.app and X11 apps
authored
203 # Enable “focus follows mouse” for Terminal.app and all X11 apps
204 # This means you can hover over a window and start typing in it without clicking first
205 #defaults write com.apple.terminal FocusFollowsMouse -bool true
206 #defaults write org.x.X11 wm_ffm -bool true
207
17c5050 @mathiasbynens Disable the Ping sidebar in iTunes.
authored
208 # Disable the Ping sidebar in iTunes
209 defaults write com.apple.iTunes disablePingSidebar -bool true
210
36c4597 @mathiasbynens Disable Ping entirely.
authored
211 # Disable all the other Ping stuff in iTunes
212 defaults write com.apple.iTunes disablePing -bool true
213
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
214 # Make ⌘ + F focus the search input in iTunes
215 defaults write com.apple.iTunes NSUserKeyEquivalents -dict-add "Target Search Field" "@F"
216
a407d5d @mathiasbynens Add some more goodies to .osx.
authored
217 # Disable send and reply animations in Mail.app
218 defaults write com.apple.Mail DisableReplyAnimations -bool true
219 defaults write com.apple.Mail DisableSendAnimations -bool true
7d02270 @mathiasbynens Initial commit.
authored
220
42f7f7b @mathiasbynens .osx: Copy email addresses as `foo@example.com` instead of `Foo Bar <…
authored
221 # Copy email addresses as `foo@example.com` instead of `Foo Bar <foo@example.com>` in Mail.app
222 defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false
223
a407d5d @mathiasbynens Add some more goodies to .osx.
authored
224 # Enable Dashboard dev mode (allows keeping widgets on the desktop)
225 defaults write com.apple.dashboard devmode -bool true
5be688e @jpsirois Remove the disturbing ".dmg" Mounting Verification
jpsirois authored
226
7d02270 @mathiasbynens Initial commit.
authored
227 # Reset Launchpad
d2b0cd8 @aristidesfl Fix error thrown when Reseting Launchpad in some conditions
aristidesfl authored
228 find ~/Library/Application\ Support/Dock -name "*.db" -maxdepth 1 -delete
7d02270 @mathiasbynens Initial commit.
authored
229
997cb32 @mathiasbynens .osx: Prevent Time Machine from prompting to use new hard drives as b…
authored
230 # Prevent Time Machine from prompting to use new hard drives as backup volume
231 defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
232
7d02270 @mathiasbynens Initial commit.
authored
233 # Disable local Time Machine backups
439e6f5 @mathiasbynens Check if `tmutil` is available before using it. (It’s not available o…
authored
234 hash tmutil &> /dev/null && sudo tmutil disablelocal
7d02270 @mathiasbynens Initial commit.
authored
235
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
236 # Remove Dropbox’s green checkmark icons in Finder
59c2863 @mathiasbynens Remove the green checkmark icons in Dropbox.
authored
237 file=/Applications/Dropbox.app/Contents/Resources/check.icns
238 [ -e "$file" ] && mv -f "$file" "$file.bak"
239 unset file
240
20e4233 @mathiasbynens The fix for the UTF-8 bug in QuickLook causes problems when saving fi…
authored
241 # Kill affected applications
5c8ad0e @mathiasbynens .osx: `killall` all affected apps
authored
242 for app in Finder Dock Mail Safari iTunes iCal Address\ Book SystemUIServer; do killall "$app" > /dev/null 2>&1; done
7baa45c @mathiasbynens .osx: Clean up after commit 5b36bee8676dc8e800f68e3a559e102dcefcae36
authored
243 echo "Done. Note that some of these changes require a logout/restart to take effect."
Something went wrong with that request. Please try again.