-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdefaults
More file actions
171 lines (128 loc) · 7.38 KB
/
defaults
File metadata and controls
171 lines (128 loc) · 7.38 KB
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
#!/usr/bin/env bash
echo ' => Security: Disable the “Are you sure you want to open this application?” dialog'
defaults write com.apple.LaunchServices "LSQuarantine" -bool "false"
echo ' => Security: 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
echo ' => Keyboard: Fast key repeat'
defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms)
defaults write -g ApplePressAndHoldEnabled -bool true # you want fast navigation keys, but I never care to key repeat letters or numbers.
echo ' => Keyboard: Disable smart quotes as they’re annoying when typing code'
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
echo ' => Keyboard: Enable full keyboard access for dialogs'
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
echo ' => Keyboard: Disable smart dashes as they’re annoying when typing code'
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
echo ' => Keyboard: Disable auto-correct'
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
echo ' => Keyboard: Disable smart quotes as it’s annoying for messages that contain code'
defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticQuoteSubstitutionEnabled" -bool false
echo ' => Keyboard: Disable continuous spell checking'
defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "continuousSpellCheckingEnabled" -bool false
echo " => Printing: I don't want the printer app to stay open when I'm finished printing"
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
echo ' => Printing: Expand print panel by default'
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true
echo ' => Google Chrome: No swipe for back/forward in Chrome'
defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool FALSE
echo ' => Safari: Enable Safari’s debug menu'
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
echo ' => Safari: Enable the Develop menu and the Web Inspector in Safari'
defaults write com.apple.Safari IncludeDevelopMenu -bool true
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled -bool true
echo ' => TextEdit: Use plain text mode for new TextEdit documents'
defaults write com.apple.TextEdit RichText -int 0
echo ' => TextEdit: Open and save files as UTF-8 in TextEdit'
defaults write com.apple.TextEdit PlainTextEncoding -int 4
defaults write com.apple.TextEdit PlainTextEncodingForWrite -int 4
echo ' => Finder: Set sidebar icon size to small'
defaults write NSGlobalDomain NSTableViewDefaultSizeMode -int 1
echo ' => Finder: Expand save panel by default'
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 -bool true
echo ' => Finder: Save to disk (not to iCloud) by default'
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
echo ' => Finder: new tabs and windows to home directory'
defaults write com.apple.finder NewWindowTarget -string "PfHm"
defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}"
echo ' => Finder: show all filename extensions'
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
echo ' => Finder: prefer to not show hidden files as I know how to toggle them'
defaults write com.apple.Finder AppleShowAllFiles -bool false
echo ' => Finder: allow text selection in Quick Look'
defaults write com.apple.finder QLEnableTextSelection -bool true
echo ' => Finder: Do not display full POSIX path as Finder window title'
defaults write com.apple.finder _FXShowPosixPathInTitle -bool false
echo ' => Finder: When performing a search, search the current folder by default'
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
echo ' => Finder: Warn when changing a file extension'
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool true
echo ' => Finder: Avoid creating .DS_Store files on network volumes'
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
echo ' => Finder: Use column list view in all Finder windows by default'
defaults write com.apple.finder FXPreferredViewStyle -string "clmv"
echo ' => Desktop: Do not show icons for hard drives, servers, and removable media on the desktop'
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool false
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool false
defaults write com.apple.finder ShowMountedServersOnDesktop -bool false
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool false
echo ' => Desktop: Turn off the desktop so I can admire my desktop background'
defaults write com.apple.finder CreateDesktop false
echo ' => Screenshots: Set default screenshot location'
mkdir -p "${HOME}/Pictures/Screenshots"
defaults write com.apple.screencapture "location" -string "${HOME}/Pictures/Screenshots"
echo ' => Spaces: Don’t automatically rearrange Spaces based on most recent use'
defaults write com.apple.dock mru-spaces -bool false
echo ' => Menu Bar: Automatically hide the menu bar'
defaults write NSGlobalDomain "_HIHideMenuBar" -bool false
echo ' => Dock: I like the bouncing apps in the Dock'
defaults write com.apple.dock no-bouncing -bool false
echo ' => Dock: Set the icon size of Dock items to 44 pixels'
defaults write com.apple.dock tilesize -int 44
echo ' => Dock: I like the indicator lights for open applications in the Dock'
defaults write com.apple.dock show-process-indicators -bool true
echo ' => Dock: Do not show recent apps in the dock'
defaults write com.apple.dock show-recents -bool false
echo ' => Dock: I like the scale effect for minimising apps'
defaults write com.apple.dock "mineffect" -string "scale"
echo ' => Dock: I prefer that apps minimise into the app icon'
defaults write com.apple.dock minimize-to-application -bool true
echo ' => Dock: Automatically hide the dock'
defaults write com.apple.dock autohide -bool true
echo ' => Dock: I like the dock on the bottom'
defaults write com.apple.dock "orientation" -string "bottom"
echo ' => Dock: Add only the applications folder to the right side of the dock'
defaults write com.apple.dock persistent-others -array '<dict>
<key>tile-data</key>
<integer>1412050432</integer>
<key>tile-data</key>
<dict>
<key>arrangement</key>
<integer>1</integer>
<key>displayas</key>
<integer>1</integer>
<key>file-data</key>
<dict>
<key>_CFURLString</key>
<string>file:///Applications/</string>
<key>_CFURLStringType</key>
<integer>15</integer>
</dict>
<key>file-label</key>
<string>Applications</string>
<key>file-type</key>
<integer>2</integer>
<key>is-beta</key>
<integer>0</integer>
<key>showas</key>
<integer>3</integer>
</dict>
<key>tile-type</key>
<string>directory-tile</string>
</dict>'
for app in "Dock" "Finder"; do
killall "${app}" > /dev/null 2>&1
done