Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 237 lines (170 sloc) 10.295 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 anima...
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 anima...
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
73 # Allow quitting Finder via ⌘ + Q; doing so will also hide desktop icons
74 defaults write com.apple.finder QuitMenuItem -bool true
75
76 # Disable window animations and Get Info animations in Finder
77 defaults write com.apple.finder DisableAllAnimations -bool true
78
79 # Show all filename extensions in Finder
80 defaults write NSGlobalDomain AppleShowAllExtensions -bool true
81
82 # Show status bar in Finder
83 defaults write com.apple.finder ShowStatusBar -bool true
84
85 # Allow text selection in Quick Look
86 defaults write com.apple.finder QLEnableTextSelection -bool true
2433b1b @mathiasbynens Enable AirDrop over Ethernet and on unsupported Macs running OS X Lion.
authored
87
a407d5d @mathiasbynens Add some more goodies to .osx.
authored
88 # Disable disk image verification
89 defaults write com.apple.frameworks.diskimages skip-verify -bool true
90 defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true
91 defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
92
93 # Automatically open a new Finder window when a volume is mounted
94 defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
95 defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
96 defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
a407d5d @mathiasbynens Add some more goodies to .osx.
authored
97
2bb5745 @mathiasbynens Minor cleanup.
authored
98 # Display full POSIX path as Finder window title
df4eb65 @mathiasbynens Fix typo.
authored
99 defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
8422565 @iloveitaly Posix path in finder title, sheet speed, hidden application's icons are ...
iloveitaly authored
100
18044c4 @mathiasbynens Avoid creating .DS_Store files on network volumes.
authored
101 # Avoid creating .DS_Store files on network volumes
102 defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
103
b6ff03a @mathiasbynens Disable the warning when changing a file extension.
authored
104 # Disable the warning when changing a file extension
105 defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
106
9bb2dce @mathiasbynens Show item info below desktop icons.
authored
107 # Show item info below desktop icons
ba9b8b8 @mathiasbynens Use full PlistBuddy path instead of the alias, so `.osx` can be used sta...
authored
108 /usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist
9bb2dce @mathiasbynens Show item info below desktop icons.
authored
109
dda45e2 @mathiasbynens .osx: Enable snap-to-grid for desktop icons
authored
110 # Enable snap-to-grid for desktop icons
111 /usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
112
df46055 @mathiasbynens Disable the warning before emptying the Trash.
authored
113 # Disable the warning before emptying the Trash
114 defaults write com.apple.finder WarnOnEmptyTrash -bool false
115
51fba19 @mathiasbynens Empty Trash securely by default.
authored
116 # Empty Trash securely by default
117 defaults write com.apple.finder EmptyTrashSecurely -bool true
118
61163c8 @mathiasbynens .osx: Group commands by type
authored
119 # Enable AirDrop over Ethernet and on unsupported Macs running Lion
120 defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true
b8fbd68 @mathiasbynens Require password immediately after sleep or screen saver begins. (Can al...
authored
121
61163c8 @mathiasbynens .osx: Group commands by type
authored
122 # Show the ~/Library folder
123 chflags nohidden ~/Library
50c583f @mathiasbynens Enable tap to click (Trackpad).
authored
124
6e45fac @mathiasbynens .osx: Add hot corners
authored
125 # Hot corners
126 # Top left screen corner → Mission Control
127 defaults write com.apple.dock wvous-tl-corner -int 2
128 defaults write com.apple.dock wvous-tl-modifier -int 0
129 # Top right screen corner → Desktop
130 defaults write com.apple.dock wvous-tr-corner -int 4
131 defaults write com.apple.dock wvous-tr-modifier -int 0
132 # Bottom left screen corner → Start screen saver
133 defaults write com.apple.dock wvous-bl-corner -int 5
134 defaults write com.apple.dock wvous-bl-modifier -int 0
135
61163c8 @mathiasbynens .osx: Group commands by type
authored
136 # Enable highlight hover effect for the grid view of a stack (Dock)
137 defaults write com.apple.dock mouse-over-hilte-stack -bool true
138
139 # Enable spring loading for all Dock items
140 defaults write com.apple.dock enable-spring-load-actions-on-all-items -bool true
141
142 # Show indicator lights for open applications in the Dock
143 defaults write com.apple.dock show-process-indicators -bool true
144
145 # Don’t animate opening applications from the Dock
146 defaults write com.apple.dock launchanim -bool false
147
148 # Remove the auto-hiding Dock delay
149 defaults write com.apple.Dock autohide-delay -float 0
4623943 @mathiasbynens .osx: Cleanup
authored
150 # Remove the animation when hiding/showing the Dock
151 defaults write com.apple.dock autohide-time-modifier -float 0
f60e3e6 @nimbling # Shorten Dock show animation speed
nimbling authored
152
61163c8 @mathiasbynens .osx: Group commands by type
authored
153 # Enable the 2D Dock
154 defaults write com.apple.dock no-glass -bool true
155
156 # Automatically hide and show the Dock
157 defaults write com.apple.dock autohide -bool true
158
159 # Make Dock icons of hidden applications translucent
160 defaults write com.apple.dock showhidden -bool true
161
162 # Enable iTunes track notifications in the Dock
163 defaults write com.apple.dock itunes-notifications -bool true
164
165 # Add a spacer to the left side of the Dock (where the applications are)
166 #defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
167 # Add a spacer to the right side of the Dock (where the Trash is)
168 #defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="spacer-tile";}'
169
170 # Disable shadow in screenshots
171 defaults write com.apple.screencapture disable-shadow -bool true
1ab9402 @mathiasbynens Map bottom right Trackpad corner to secondary click (right-click).
authored
172
7d02270 @mathiasbynens Initial commit.
authored
173 # Disable Safari’s thumbnail cache for History and Top Sites
174 defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2
175
558b2c4 @mathiasbynens Enable Safari’s debug menu.
authored
176 # Enable Safari’s debug menu
fc439ad @mathiasbynens Looks like `IncludeDebugMenu` was replaced by `IncludeInternalDebugMenu`...
authored
177 defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
558b2c4 @mathiasbynens Enable Safari’s debug menu.
authored
178
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
179 # Make Safari’s search banners default to Contains instead of Starts With
180 defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false
181
7d02270 @mathiasbynens Initial commit.
authored
182 # Remove useless icons from Safari’s bookmarks bar
183 defaults write com.apple.Safari ProxiesInBookmarksBar "()"
184
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
185 # Add a context menu item for showing the Web Inspector in web views
186 defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
72860be @mathiasbynens .osx: Enable the debug menu in iCal and Address Book
authored
187
188 # Enable the debug menu in Address Book
189 defaults write com.apple.addressbook ABShowDebugMenu -bool true
190
191 # Enable the debug menu in iCal
192 defaults write com.apple.iCal IncludeDebugMenu -bool true
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
193
83adc55 @mathiasbynens Only use UTF-8 in Terminal.app.
authored
194 # Only use UTF-8 in Terminal.app
195 defaults write com.apple.terminal StringEncodings -array 4
196
fb16c91 @mathiasbynens .osx: Add “focus follows mouse” commands for Terminal.app and X11 apps
authored
197 # Enable “focus follows mouse” for Terminal.app and all X11 apps
198 # This means you can hover over a window and start typing in it without clicking first
199 #defaults write com.apple.terminal FocusFollowsMouse -bool true
200 #defaults write org.x.X11 wm_ffm -bool true
201
17c5050 @mathiasbynens Disable the Ping sidebar in iTunes.
authored
202 # Disable the Ping sidebar in iTunes
203 defaults write com.apple.iTunes disablePingSidebar -bool true
204
36c4597 @mathiasbynens Disable Ping entirely.
authored
205 # Disable all the other Ping stuff in iTunes
206 defaults write com.apple.iTunes disablePing -bool true
207
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
208 # Make ⌘ + F focus the search input in iTunes
209 defaults write com.apple.iTunes NSUserKeyEquivalents -dict-add "Target Search Field" "@F"
210
a407d5d @mathiasbynens Add some more goodies to .osx.
authored
211 # Disable send and reply animations in Mail.app
212 defaults write com.apple.Mail DisableReplyAnimations -bool true
213 defaults write com.apple.Mail DisableSendAnimations -bool true
7d02270 @mathiasbynens Initial commit.
authored
214
42f7f7b @mathiasbynens .osx: Copy email addresses as `foo@example.com` instead of `Foo Bar <foo...
authored
215 # Copy email addresses as `foo@example.com` instead of `Foo Bar <foo@example.com>` in Mail.app
216 defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false
217
a407d5d @mathiasbynens Add some more goodies to .osx.
authored
218 # Enable Dashboard dev mode (allows keeping widgets on the desktop)
219 defaults write com.apple.dashboard devmode -bool true
5be688e @jpsirois Remove the disturbing ".dmg" Mounting Verification
jpsirois authored
220
7d02270 @mathiasbynens Initial commit.
authored
221 # Reset Launchpad
c60ad3b @mathiasbynens Only reset Launchpad when it’s actually available. Fixes #24.
authored
222 [ -e ~/Library/Application\ Support/Dock/*.db ] && rm ~/Library/Application\ Support/Dock/*.db
7d02270 @mathiasbynens Initial commit.
authored
223
997cb32 @mathiasbynens .osx: Prevent Time Machine from prompting to use new hard drives as back...
authored
224 # Prevent Time Machine from prompting to use new hard drives as backup volume
225 defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
226
7d02270 @mathiasbynens Initial commit.
authored
227 # Disable local Time Machine backups
439e6f5 @mathiasbynens Check if `tmutil` is available before using it. (It’s not available on S...
authored
228 hash tmutil &> /dev/null && sudo tmutil disablelocal
7d02270 @mathiasbynens Initial commit.
authored
229
4c0198f @mathiasbynens .osx: Tweak some more hidden preferences
authored
230 # Remove Dropbox’s green checkmark icons in Finder
59c2863 @mathiasbynens Remove the green checkmark icons in Dropbox.
authored
231 file=/Applications/Dropbox.app/Contents/Resources/check.icns
232 [ -e "$file" ] && mv -f "$file" "$file.bak"
233 unset file
234
20e4233 @mathiasbynens The fix for the UTF-8 bug in QuickLook causes problems when saving files...
authored
235 # Kill affected applications
91cd631 @mathiasbynens .osx: Make Trackpad settings more robust
authored
236 for app in Safari Finder Dock Mail SystemUIServer; do killall "$app" > /dev/null 2>&1; done
237 echo "Done. Note that some of these changes require a logout/restart to take effect."
Something went wrong with that request. Please try again.