-
Notifications
You must be signed in to change notification settings - Fork 21
/
osx
executable file
·172 lines (120 loc) · 6.99 KB
/
osx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
#!/bin/bash
# Via https://raw.github.com/mathiasbynens/dotfiles/master/.osx
# Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs) (default: not set).
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
# Enable subpixel font rendering on non-Apple LCDs (default: not set).
defaults write NSGlobalDomain AppleFontSmoothing -int 2
# Enable the 2D Dock (default: false).
# defaults write com.apple.dock no-glass -bool true
# Automatically hide and show the Dock (default: false).
defaults write com.apple.dock autohide -bool true
# Make Dock icons of hidden applications translucent (default: false).
# defaults write com.apple.dock showhidden -bool true
# Disable menu bar transparency (default: true).
# defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
# Show remaining battery time, hide percentage.
# defaults write com.apple.menuextra.battery ShowPercent -string "NO"
# defaults write com.apple.menuextra.battery ShowTime -string "YES"
# Always show scrollbars (default: WhenScrolling).
# defaults write NSGlobalDomain AppleShowScrollBars -string "Always"
# Allow quitting Finder via ⌘ + Q (will also hide desktop icons) (default: false).
# defaults write com.apple.finder QuitMenuItem -bool true
# Show all filename extensions in Finder (default: false).
# defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Expand save panel (default: false).
# defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
# Expand print panel (default: false).
# defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
# Disable 'Are you sure you want to open this application?' (default: true).
# defaults write com.apple.LaunchServices LSQuarantine -bool false
# Disable shadow in screenshots (default: false).
defaults write com.apple.screencapture disable-shadow -bool true
# Enable highlight hover effect for the grid view of a stack (default: false).
# defaults write com.apple.dock mouse-over-hilte-stack -bool true
# Enable spring loading for all Dock items (default: false).
# defaults write enable-spring-load-actions-on-all-items -bool true
# Show indicator lights for open applications in the Dock (default: false).
defaults write com.apple.dock show-process-indicators -bool true
# Don’t animate opening applications from the Dock (default: true).
# defaults write com.apple.dock launchanim -bool false
# Disable press-and-hold for keys in favor of key repeat (default: true).
# defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
# Set a blazingly fast keyboard repeat rate (default: 60).
# defaults write NSGlobalDomain KeyRepeat -int 0
# Disable auto-correct (default: true).
# defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
# Disable window animations (default: true).
# defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
# Enable AirDrop over Ethernet and on unsupported Macs running Lion (default: false).
# defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true
# Disable disk image verification (default: false).
defaults write com.apple.frameworks.diskimages skip-verify -bool true
defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true
defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
# Automatically open a new Finder window when a volume is mounted (default: false).
# defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
# defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
# Display full POSIX path as Finder window title (default: false).
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
# Increase window resize speed for Cocoa applications (default: not set).
# defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
# Avoid creating .DS_Store files on network volumes (default: false).
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
# Disable the warning when changing a file extension (default: true).
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# Show item info below desktop icons (default false).
# /usr/libexec/PlistBuddy \
# -c "Set :DesktopViewSettings:IconViewSettings:showItemInfo true" \
# ~/Library/Preferences/com.apple.finder.plist
# Disable the warning before emptying the Trash (default: true).
# defaults write com.apple.finder WarnOnEmptyTrash -bool false
# Empty Trash securely (default: false).
# defaults write com.apple.finder EmptyTrashSecurely -bool true
# Require password immediately after sleep or screen saver begins.
# defaults write com.apple.screensaver askForPassword -int 1
# defaults write com.apple.screensaver askForPasswordDelay -int 0
# Enable Trackpad tap to click (default: false).
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad \
Clicking -bool true
# Map bottom right Trackpad corner to right-click.
# defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad \
# TrackpadCornerSecondaryClick -int 2
# defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad \
# TrackpadRightClick -bool true
# Disable Safari’s thumbnail cache for History and Top Sites
defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2
# Enable Safari’s debug menu (default: false).
# defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
# Remove useless icons from Safari’s bookmarks bar
# defaults write com.apple.Safari ProxiesInBookmarksBar "()"
# Only use UTF-8 in Terminal.app.
# defaults write com.apple.terminal StringEncodings -array 4
# Disable the Ping sidebar in iTunes (default: false).
defaults write com.apple.iTunes disablePingSidebar -bool true
# Disable all the other Ping stuff in iTunes (default: false).
defaults write com.apple.iTunes disablePing -bool true
# Disable send and reply animations in Mail.app (default: false).
# defaults write com.apple.Mail DisableReplyAnimations -bool true
# defaults write com.apple.Mail DisableSendAnimations -bool true
# Disable Resume system-wide (default: true).
# defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false
# Enable Dashboard dev mode for keeping widgets on the desktop (default: false).
# defaults write com.apple.dashboard devmode -bool true
# Reset Launchpad.
# [ -e ~/Library/Application\ Support/Dock/*.db ] \
# && rm ~/Library/Application\ Support/Dock/*.db
# Show the ~/Library folder (default: hidden).
# chflags nohidden ~/Library
# Disable local Time Machine backups (default: enabled).
# hash tmutil &> /dev/null && sudo tmutil disablelocal
# Remove Dropbox’s green checkmark icons in Finder.app.
# file=/Applications/Dropbox.app/Contents/Resources/check.icns
# [ -e "$file" ] && mv -f "$file" "$file.bak"
# unset file
# Fix for the ancient UTF-8 bug in QuickLook (http://mths.be/bbo).
# Causes problems when saving files in Adobe Illustrator CS5.
# echo "0x08000100:0" > ~/.CFUserTextEncoding
# Kill affected applications
for app in Safari Finder Dock Mail SystemUIServer; do
killall "$app" >/dev/null 2>&1;
done