└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # macOS-Pro 2 | 3 | ### Disable heavy login screen wallpaper 4 | 5 | ```bash 6 | sudo defaults write /Library/Preferences/com.apple.loginwindow DesktopPicture "" 7 | ``` 8 | 9 | ### Disable the “Are you sure you want to open this application?” dialog 10 | 11 | ```bash 12 | defaults write com.apple.LaunchServices LSQuarantine -bool false 13 | ``` 14 | 15 | 16 | ### Disable disk image verification 17 | ```bash 18 | defaults write com.apple.frameworks.diskimages skip-verify -bool true 19 | defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true 20 | defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true 21 | ``` 22 | 23 | ### Deactivate and Stop the Remote Management Service 24 | ```bash 25 | sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -stop 26 | ``` 27 | 28 | ### Disable ARD Agent and Remove Access Privileges for All Users (Default) 29 | ```bash 30 | sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off 31 | ``` 32 | 33 | ### Remove Apple Remote Desktop Settings 34 | ```bash 35 | sudo rm -rf /var/db/RemoteManagement ; \ 36 | sudo defaults delete /Library/Preferences/com.apple.RemoteDesktop.plist ; \ 37 | defaults delete ~/Library/Preferences/com.apple.RemoteDesktop.plist ; \ 38 | sudo rm -r /Library/Application\ Support/Apple/Remote\ Desktop/ ; \ 39 | rm -r ~/Library/Application\ Support/Remote\ Desktop/ ; \ 40 | rm -r ~/Library/Containers/com.apple.RemoteDesktop 41 | ``` 42 | 43 | ### TextEdit: Create an Untitled Document at Launch 44 | ```bash 45 | defaults write com.apple.TextEdit NSShowAppCentricOpenPanelInsteadOfUntitledFile -bool false 46 | ``` 47 | 48 | ### TextEdit: Use Plain Text Mode as Default 49 | ```bash 50 | defaults write com.apple.TextEdit RichText -int 0 51 | ``` 52 | 53 | ### Disable Time Machine 54 | ```bash 55 | sudo tmutil disable 56 | ``` 57 | 58 | ### Prevent Time Machine from Prompting to Use New Hard Drives as Backup Volume 59 | ```bash 60 | sudo defaults write /Library/Preferences/com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true 61 | ``` 62 | 63 | ### Toggle Folder Visibility in Finder 64 | By default, the ~/Library folder is hidden. You can easily show it again. The same method works with all other folders. 65 | ```bash 66 | chflags nohidden ~/Library 67 | ``` 68 | 69 | ### Expand Save Panel by Default 70 | ```bash 71 | defaults write -g NSNavPanelExpandedStateForSaveMode -bool true && \ 72 | defaults write -g NSNavPanelExpandedStateForSaveMode2 -bool true 73 | ``` 74 | 75 | ### Metadata Files 76 | Disable Creation of Metadata Files on Network Volumes 77 | Avoids creation of .DS_Store and AppleDouble files. 78 | ```bash 79 | defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true 80 | ``` 81 | 82 | ### Disable Creation of Metadata Files on USB Volumes 83 | Avoids creation of .DS_Store and AppleDouble files. 84 | ```bash 85 | defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true 86 | ``` 87 | 88 | ### Always search within the current Folder 89 | ```bash 90 | defaults write com.apple.finder FXDefaultSearchScope -string "SCcf" 91 | ``` 92 | 93 | ### Disable Homebrew analytics 94 | ```bash 95 | brew analytics off 96 | ``` 97 | 98 | ### Disable AutoCorrect 99 | ```bash 100 | defaults write -g NSAutomaticSpellingCorrectionEnabled -bool false 101 | ``` 102 | 103 | ### Expand Print Panel by Default 104 | By default, the “print” dialog is very small with some default options selected. These commands will expand it for you. 105 | ```bash 106 | defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true && \ 107 | defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true 108 | ``` 109 | 110 | ### Key Repeats 111 | By default pressing “delete/backspace” multiple times in a row is be faster than holding it. You can make it faster with the following commands: 112 | Key repeat (default is 2 or 30 ms) 113 | ```bash 114 | defaults write -g KeyRepeat -int 0.02 115 | ``` 116 | When the Key repeat starts (default is 15 or 225ms): 117 | ```bash 118 | defaults write -g InitialKeyRepeat -int 10 119 | ``` 120 | 121 | ### Safari Default Web Page 122 | ```bash 123 | defaults write com.apple.Safari HomePage -string "about:blank" 124 | ``` 125 | 126 | ### Allow apps downloaded from "Anywhere" to be opened 127 | ```bash 128 | sudo spctl - master-disable 129 | ``` 130 | 131 | ### Change the Screenshot image type from PNG to JPG to save space 132 | ```bash 133 | defaults write com.apple.screencapture type jpg && killall SystemUIServer 134 | ``` 135 | 136 | ### Dock to the left 137 | ```bash 138 | defaults write com.apple.Dock orientation -string left 139 | ``` 140 | 141 | ### Hide Finder status bar 142 | ``` 143 | defaults write com.apple.Finder ShowStatusBar -bool false 144 | ``` 145 | 146 | ### Hide Finder path bar 147 | ``` 148 | defaults write com.apple.Finder ShowPathbar -bool false 149 | ``` 150 | 151 | ### Hide internal hard drives on desktop 152 | ``` 153 | defaults write com.apple.Finder ShowHardDrivesOnDesktop -bool true 154 | ``` 155 | 156 | ### Hide external hard drives on desktop 157 | ``` 158 | defaults write com.apple.Finder ShowExternalHardDrivesOnDesktop -bool true 159 | ``` 160 | 161 | ### Hide removable media on desktop 162 | ``` 163 | defaults write com.apple.Finder ShowRemovableMediaOnDesktop -bool true 164 | ``` 165 | 166 | ### Hide mounted servers on desktop 167 | ``` 168 | defaults write com.apple.Finder ShowMountedServersOnDesktop -bool true 169 | ``` 170 | 171 | ### Disable the warning before emptying the Trash 172 | ``` 173 | defaults write com.apple.Finder WarnOnEmptyTrash -bool false 174 | ``` 175 | 176 | ### Stop safari from auto open files 177 | ``` 178 | defaults write com.apple.Safari AutoOpenSafeDownloads -bool false 179 | ``` 180 | 181 | ### Hide bookmarks bar 182 | ``` 183 | defaults write com.apple.Safari ShowFavoritesBar -bool false 184 | ``` 185 | 186 | ### Disable crash reporter 187 | ``` 188 | defaults write com.apple.CrashReporter DialogType none 189 | ``` 190 | 191 | ### Disable GateKeeper 192 | ``` 193 | sudo spctl --master-disable 194 | sudo defaults write /Library/Preferences/com.apple.security GKAutoRearm -bool false 195 | ``` 196 | 197 | ### Use Touch ID when asked for password from the sudo command 198 | ``` 199 | cd /etc/pam.d 200 | sudo cp sudo_local.template sudo_local 201 | sudo pico sudo_local 202 | ``` 203 | In that file, navigate to the line that contains with pam_tid.so and delete the hashtag (#) at the beginning. Save the file out by pressing Control-X, typing ‘Y’ to save your changes, and hitting Return. 204 | 205 | ### Don't display screenshot thumbnail and save immediately 206 | ``` 207 | defaults write com.apple.screencapture "show-thumbnail" -bool "false" 208 | ``` 209 | 210 | ### Do not display the warning when changing a file extension 211 | ``` 212 | defaults write com.apple.finder "FXEnableExtensionChangeWarning" -bool "false" && killall Finder 213 | ``` 214 | 215 | ### Set light click weight (threshold) 216 | ``` 217 | defaults write com.apple.AppleMultitouchTrackpad "FirstClickThreshold" -int "0" 218 | ``` 219 | 220 | ### Do not autogather large files when submitting a feedback report 221 | ``` 222 | defaults write com.apple.appleseed.FeedbackAssistant "Autogather" -bool "false" 223 | ``` 224 | 225 | ### Disable application quarantine message 226 | ``` 227 | defaults write com.apple.LaunchServices "LSQuarantine" -bool "false" 228 | ``` 229 | 230 | ### Set machine sleep to 2 minutes on battery 231 | ``` 232 | sudo pmset -b sleep 2 233 | ``` 234 | 235 | ### Set machine sleep to 3 minutes while charging 236 | ``` 237 | sudo pmset -b sleep 3 238 | ``` 239 | 240 | ### Require password immediately after sleep or screen saver begins 241 | ``` 242 | defaults write com.apple.screensaver askForPassword -int 1 243 | defaults write com.apple.screensaver askForPasswordDelay -int 0 244 | ``` 245 | 246 | ### Disable bottom right corner quick note 247 | ``` 248 | defaults write com.apple.dock wvous-br-corner -int 0 249 | defaults write com.apple.dock wvous-br-modifier -int 0 250 | ``` 251 | 252 | ### Safari disable Warn about fraudulent websites 253 | ``` 254 | defaults write com.apple.Safari WarnAboutFraudulentWebsites -bool false 255 | ``` 256 | 257 | ### Disable "Ask Siri" 258 | ``` 259 | defaults write com.apple.assistant.support 'Assistant Enabled' -bool false 260 | ``` 261 | 262 | ### Disable Siri voice feedback 263 | ``` 264 | defaults write com.apple.assistant.backedup 'Use device speaker for TTS' -int 3 265 | ``` 266 | 267 | ### Disable Siri telemetry 268 | ``` 269 | defaults write com.apple.assistant.support 'Siri Data Sharing Opt-In Status' -int 2 270 | ``` 271 | 272 | ### Improving Bluetooth audio quality 273 | ``` 274 | defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" -int 40 275 | defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Max (editable)" 80 276 | defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" 40 277 | defaults write com.apple.BluetoothAudioAgent "Apple Initial Bitpool (editable)" 80 278 | defaults write com.apple.BluetoothAudioAgent "Apple Initial Bitpool Min (editable)" 80 279 | defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool" 80 280 | defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Max" 80 281 | defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Min" 80 282 | ``` 283 | 284 | ### Disable potential DNS leaks 285 | ``` 286 | sudo defaults write /Library/Preferences/com.apple.mDNSResponder.plist NoMulticastAdvertisements -bool YES 287 | ``` 288 | --------------------------------------------------------------------------------