mbstring extension must be loaded in order to run mPDF
macoscustomizationdefaults
Table of Contents
Nice defaults for new macOS systems
Set Hostname properly
sudo scutil --set HostName 'myfirsthostname'
General
# Always display proxy icons defaults write http://com.apple.universalaccess "showWindowTitlebarIcons" -bool true # Don't suggest saving to iCloud defaults write NSGlobalDomain "NSDocumentSaveNewDocumentsToCloud" -bool false # Show seconds in menubar clock defaults write com.apple.menuextra.clock "DateFormat" -string "\"HH:mm:ss\"" # Disable "Application Downloaded from Internet" warning defaults write com.apple.LaunchServices "LSQuarantine" -bool false # Disable boot chime sudo nvram SystemAudioVolume=" " # Don't re-open windows on system launch defaults write com.apple.systempreferences NSQuitAlwaysKeepsWindows -bool false #Enable AirDrop over Ethernet defaults write com.apple.NetworkBrowser "BrowseAllInterfaces" -bool true # Enable tap-to-click defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1 defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1 # Enable Control-Scroll Zoom defaults write com.apple.universalaccess "closeViewScrollWheelToggle" -bool true
Display
# Enable subpixel anti-aliasing on non-Apple displays defaults write NSGlobalDomain "AppleFontSmoothing" -int 1 # Enable HiDPI display modes sudo defaults write /Library/Preferences/com.apple.windowserver "DisplayResolutionEnabled" -bool true
Screenshots
# Don't display thumbnail after taking a screenshot defaults write com.apple.screencapture "show-thumbnail" -bool false # Disable window shadow in screenshots defaults write com.apple.screencapture "disable-shadow" -bool false
Keyboard
# Disable AutoCorrect defaults write -g "NSAutomaticSpellingCorrectionEnabled" -bool false # Disable Auto Capitalization defaults write NSGlobalDomain "NSAutomaticCapitalizationEnabled" -bool false # Disable Automatic period substitution defaults write NSGlobalDomain "NSAutomaticPeriodSubstitutionEnabled" -bool false
Finder
# Display Quit menu item defaults write com.apple.finder "QuitMenuItem" -bool true # Show hidden files defaults write com.apple.finder "AppleShowAllFiles" -bool true # Disable .DS_Store creation on network storage defaults write com.apple.desktopservices "DSDontWriteNetworkStores" -bool true # Disable .DS_Store creation on USB storage defaults write com.apple.desktopservices "DSDontWriteUSBStores" -bool true # Change sidebar icon size defaults write NSGlobalDomain "NSTableViewDefaultSizeMode" -int "1" #small defaults write NSGlobalDomain "NSTableViewDefaultSizeMode" -int "2" #medium defaults write NSGlobalDomain "NSTableViewDefaultSizeMode" -int "3" #large # Disable warning when changing file extension defaults write com.apple.finder "FXEnableExtensionChangeWarning" -bool false # Disable image verification defaults write com.apple.frameworks.diskimages "skip-verify" -bool true # Show ~/Library chflags nohidden ~/Library && xattr -d com.apple.FinderInfo ~/Library # Show mounted storage on Desktop defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true defaults write com.apple.finder ShowMountedServersOnDesktop -bool true defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true
TouchID sudo
- Add this line as the first entry after the comment in
/etc/pam.d/sudo:auth sufficient pam_tid.so
- In order to also make this work in iTerm, go to Settings → Advanced and search for the entry “Allow sessions to survive logging out and back in”. Turn in off.
Links
Settings accessible via GUI only
Three finger drag
macoscustomizationdefaults.txt · Last modified: by wolfo

