Skip to content
This repository
Newer
Older
100755 243 lines (174 sloc) 10.541 kb
7d022705 »
2011-09-05 Initial commit.
1 # Disable menu bar transparency
f1506922 »
2011-09-20 Use `NSGlobalDomain` instead of `-g`.
2 defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
7d022705 »
2011-09-05 Initial commit.
3
91918d76 »
2011-09-23 Show remaining battery time; hide percentage.
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
45806ef8 »
2011-09-20 Always show scrollbars.
8 # Always show scrollbars
9 defaults write NSGlobalDomain AppleShowScrollBars -string "Always"
10
7d022705 »
2011-09-05 Initial commit.
11 # Expand save panel by default
f1506922 »
2011-09-20 Use `NSGlobalDomain` instead of `-g`.
12 defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
7d022705 »
2011-09-05 Initial commit.
13
14 # Expand print panel by default
f1506922 »
2011-09-20 Use `NSGlobalDomain` instead of `-g`.
15 defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
7d022705 »
2011-09-05 Initial commit.
16
cdbb059f »
2011-09-20 Disable the “Are you sure you want to open this application?” dialog.
17 # Disable the “Are you sure you want to open this application?” dialog
18 defaults write com.apple.LaunchServices LSQuarantine -bool false
19
61163c8a »
2012-04-10 .osx: Group commands by type
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
7d022705 »
2011-09-05 Initial commit.
23
61163c8a »
2012-04-10 .osx: Group commands by type
24 # Disable opening and closing window animations
25 defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
a4a0fa19 » gburtini
2011-09-08 Added enable-spring-load-actions-on-all-items -bool true
26
61163c8a »
2012-04-10 .osx: Group commands by type
27 # Increase window resize speed for Cocoa applications
28 defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
7d022705 »
2011-09-05 Initial commit.
29
61163c8a »
2012-04-10 .osx: Group commands by type
30 # Disable Resume system-wide
31 defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false
6b3819f1 »
2011-09-20 Show indicator lights for open applications in the Dock, and don’t an…
32
61163c8a »
2012-04-10 .osx: Group commands by type
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
6b3819f1 »
2011-09-20 Show indicator lights for open applications in the Dock, and don’t an…
38
61163c8a »
2012-04-10 .osx: Group commands by type
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
7134df85 »
2012-04-02 .osx: Remove the auto-hiding Dock delay
42
61163c8a »
2012-04-10 .osx: Group commands by type
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
4c0198f0 »
2012-02-24 .osx: Tweak some more hidden preferences
48
a407d5d3 »
2011-09-07 Add some more goodies to .osx.
49 # Disable press-and-hold for keys in favor of key repeat
f1506922 »
2011-09-20 Use `NSGlobalDomain` instead of `-g`.
50 defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
a407d5d3 »
2011-09-07 Add some more goodies to .osx.
51
7c463423 »
2011-09-23 Set a blazingly fast keyboard repeat rate.
52 # Set a blazingly fast keyboard repeat rate
53 defaults write NSGlobalDomain KeyRepeat -int 0
54
a407d5d3 »
2011-09-07 Add some more goodies to .osx.
55 # Disable auto-correct
56 defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
57
91cd6310 »
2012-04-10 .osx: Make Trackpad settings more robust
58 # Enable tap to click (Trackpad) for this user and for the login screen
61163c8a »
2012-04-10 .osx: Group commands by type
59 defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
91cd6310 »
2012-04-10 .osx: Make Trackpad settings more robust
60 defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
61 defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
a407d5d3 »
2011-09-07 Add some more goodies to .osx.
62
61163c8a »
2012-04-10 .osx: Group commands by type
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
91cd6310 »
2012-04-10 .osx: Make Trackpad settings more robust
66 defaults -currentHost write NSGlobalDomain com.apple.trackpad.trackpadCornerClickBehavior -int 1
67 defaults -currentHost write NSGlobalDomain com.apple.trackpad.enableSecondaryClick -bool true
61163c8a »
2012-04-10 .osx: Group commands by type
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
7baa45cc »
2012-04-30 .osx: Clean up after commit 5b36bee
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
61163c8a »
2012-04-10 .osx: Group commands by type
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
2433b1bb »
2011-09-20 Enable AirDrop over Ethernet and on unsupported Macs running OS X Lion.
93
a407d5d3 »
2011-09-07 Add some more goodies to .osx.
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
4c0198f0 »
2012-02-24 .osx: Tweak some more hidden preferences
102 defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
a407d5d3 »
2011-09-07 Add some more goodies to .osx.
103
2bb57456 »
2011-09-17 Minor cleanup.
104 # Display full POSIX path as Finder window title
df4eb658 »
2011-09-17 Fix typo.
105 defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
8422565e » iloveitaly
2011-09-10 Posix path in finder title, sheet speed, hidden application's icons a…
106
18044c4c »
2011-09-08 Avoid creating .DS_Store files on network volumes.
107 # Avoid creating .DS_Store files on network volumes
108 defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
109
b6ff03af »
2011-09-23 Disable the warning when changing a file extension.
110 # Disable the warning when changing a file extension
111 defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
112
9bb2dcef »
2011-09-24 Show item info below desktop icons.
113 # Show item info below desktop icons
ba9b8b8a »
2011-09-24 Use full PlistBuddy path instead of the alias, so `.osx` can be used …
114 /usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist
9bb2dcef »
2011-09-24 Show item info below desktop icons.
115
dda45e2c »
2012-02-22 .osx: Enable snap-to-grid for desktop icons
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
df460553 »
2011-09-23 Disable the warning before emptying the Trash.
119 # Disable the warning before emptying the Trash
120 defaults write com.apple.finder WarnOnEmptyTrash -bool false
121
51fba19b »
2011-09-23 Empty Trash securely by default.
122 # Empty Trash securely by default
123 defaults write com.apple.finder EmptyTrashSecurely -bool true
124
61163c8a »
2012-04-10 .osx: Group commands by type
125 # Enable AirDrop over Ethernet and on unsupported Macs running Lion
126 defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true
b8fbd682 »
2011-09-21 Require password immediately after sleep or screen saver begins. (Can…
127
61163c8a »
2012-04-10 .osx: Group commands by type
128 # Show the ~/Library folder
129 chflags nohidden ~/Library
50c583f8 »
2011-09-23 Enable tap to click (Trackpad).
130
6e45face »
2012-04-10 .osx: Add hot corners
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
61163c8a »
2012-04-10 .osx: Group commands by type
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
4623943f »
2012-04-10 .osx: Cleanup
156 # Remove the animation when hiding/showing the Dock
157 defaults write com.apple.dock autohide-time-modifier -float 0
f60e3e64 » fruityth1ng
2012-04-10 # Shorten Dock show animation speed
158
61163c8a »
2012-04-10 .osx: Group commands by type
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
1ab9402e »
2011-09-21 Map bottom right Trackpad corner to secondary click (right-click).
178
7d022705 »
2011-09-05 Initial commit.
179 # Disable Safari’s thumbnail cache for History and Top Sites
180 defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2
181
558b2c46 »
2011-09-08 Enable Safari’s debug menu.
182 # Enable Safari’s debug menu
fc439ad5 »
2011-10-19 Looks like `IncludeDebugMenu` was replaced by `IncludeInternalDebugMe…
183 defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
558b2c46 »
2011-09-08 Enable Safari’s debug menu.
184
4c0198f0 »
2012-02-24 .osx: Tweak some more hidden preferences
185 # Make Safari’s search banners default to Contains instead of Starts With
186 defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false
187
7d022705 »
2011-09-05 Initial commit.
188 # Remove useless icons from Safari’s bookmarks bar
189 defaults write com.apple.Safari ProxiesInBookmarksBar "()"
190
4c0198f0 »
2012-02-24 .osx: Tweak some more hidden preferences
191 # Add a context menu item for showing the Web Inspector in web views
192 defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
72860bec »
2012-04-03 .osx: Enable the debug menu in iCal and Address Book
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
4c0198f0 »
2012-02-24 .osx: Tweak some more hidden preferences
199
83adc550 »
2011-09-23 Only use UTF-8 in Terminal.app.
200 # Only use UTF-8 in Terminal.app
201 defaults write com.apple.terminal StringEncodings -array 4
202
fb16c911 »
2012-04-12 .osx: Add “focus follows mouse” commands for Terminal.app and X11 apps
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
17c5050f »
2011-09-24 Disable the Ping sidebar in iTunes.
208 # Disable the Ping sidebar in iTunes
209 defaults write com.apple.iTunes disablePingSidebar -bool true
210
36c45978 »
2011-09-24 Disable Ping entirely.
211 # Disable all the other Ping stuff in iTunes
212 defaults write com.apple.iTunes disablePing -bool true
213
4c0198f0 »
2012-02-24 .osx: Tweak some more hidden preferences
214 # Make ⌘ + F focus the search input in iTunes
215 defaults write com.apple.iTunes NSUserKeyEquivalents -dict-add "Target Search Field" "@F"
216
a407d5d3 »
2011-09-07 Add some more goodies to .osx.
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
7d022705 »
2011-09-05 Initial commit.
220
42f7f7be »
2012-03-31 .osx: Copy email addresses as `foo@example.com` instead of `Foo Bar <…
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
a407d5d3 »
2011-09-07 Add some more goodies to .osx.
224 # Enable Dashboard dev mode (allows keeping widgets on the desktop)
225 defaults write com.apple.dashboard devmode -bool true
5be688e0 » jpsirois
2011-09-06 Remove the disturbing ".dmg" Mounting Verification
226
7d022705 »
2011-09-05 Initial commit.
227 # Reset Launchpad
d2b0cd88 » aristidesfl
2012-04-27 Fix error thrown when Reseting Launchpad in some conditions
228 find ~/Library/Application\ Support/Dock -name "*.db" -maxdepth 1 -delete
7d022705 »
2011-09-05 Initial commit.
229
997cb325 »
2012-04-12 .osx: Prevent Time Machine from prompting to use new hard drives as b…
230 # Prevent Time Machine from prompting to use new hard drives as backup volume
231 defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
232
7d022705 »
2011-09-05 Initial commit.
233 # Disable local Time Machine backups
439e6f5a »
2011-09-24 Check if `tmutil` is available before using it. (It’s not available o…
234 hash tmutil &> /dev/null && sudo tmutil disablelocal
7d022705 »
2011-09-05 Initial commit.
235
4c0198f0 »
2012-02-24 .osx: Tweak some more hidden preferences
236 # Remove Dropbox’s green checkmark icons in Finder
59c28630 »
2011-10-22 Remove the green checkmark icons in Dropbox.
237 file=/Applications/Dropbox.app/Contents/Resources/check.icns
238 [ -e "$file" ] && mv -f "$file" "$file.bak"
239 unset file
240
20e4233e »
2011-09-25 The fix for the UTF-8 bug in QuickLook causes problems when saving fi…
241 # Kill affected applications
5c8ad0ea »
2012-04-14 .osx: `killall` all affected apps
242 for app in Finder Dock Mail Safari iTunes iCal Address\ Book SystemUIServer; do killall "$app" > /dev/null 2>&1; done
7baa45cc »
2012-04-30 .osx: Clean up after commit 5b36bee
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.