Skip to content

Instantly share code, notes, and snippets.

@binury
Last active September 13, 2018 22:08
Show Gist options
  • Save binury/ccbf2f7937a5b82f1c3640d1e4754e86 to your computer and use it in GitHub Desktop.
Save binury/ccbf2f7937a5b82f1c3640d1e4754e86 to your computer and use it in GitHub Desktop.
MacOS High Sierra sane config settings for developers
# Animations
# Disable animations when opening and closing windows.
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
# Disable animations when opening a Quick Look window.
defaults write -g QLPanelAnimationDuration -float 0
# Accelerated playback when adjusting the window size of Cocoa applications.
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
defaults write -g NSDocumentRevisionsWindowTransformAnimation -bool false
# Disable animation when opening the Info window in Finder (cmd⌘ + i).
defaults write com.apple.finder DisableAllAnimations -bool true
# Disable animations when you open an application from the Dock.
defaults write com.apple.dock launchanim -bool false
# Disable delays when hiding the Dock
defaults write com.apple.dock autohide-time-modifier -float 0
defaults write com.apple.dock autohide-delay -float 0
# Make Mission Control/Expose animations faster
defaults write com.apple.dock expose-animation-duration -float 0.1
# Disable animations when sending emails
defaults write com.apple.mail DisableReplyAnimations -bool true
defaults write com.apple.mail DisableSendAnimations -bool true
# Disable the standard delay for rendering a web page.
defaults write com.apple.Safari WebKitInitialTimedLayoutDelay 0.25
# Keyboard
# Faster key repeat
#defaults write NSGlobalDomain KeyRepeat -int 1
# Disable smart quotes and dashes
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
# Enable full keyboard controls for modal dialogs, menu windows, etc.
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
# Disable press-and-hold for special keys in favor of key-repeat
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
# Disable auto-correct
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
# Turn off keyboard illumination when computer is not used for 3 minutes
defaults write com.apple.BezelServices kDimTime -int 180
# Display
# Enable subpixel font rendering on non-Apple LCDs
defaults write NSGlobalDomain AppleFontSmoothing -int 2
# Enable HiDPI display modes (requires restart)
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool true
# Finder
# Show hidden/dot files
defaults write com.apple.finder AppleShowAllFiles TRUE
# Show file extensions
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Show status bar
defaults write com.apple.finder ShowStatusBar -bool true
# Show path in title bar
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
# Disable warning when changing file type
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# Default to column view
defaults write com.apple.finder FXPreferredViewStyle Clmv
# Allow text selection in quick look
defaults write com.apple.finder QLEnableTextSelection -bool true
# Misc
# Disable disk image (iso, pkg, etc.) verification
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
printf "Note: some changes require a logout/restart to take effect!"
printf "Restarting system applications. . ."
find ~/Library/Application\ Support/Dock -name "*.db" -maxdepth 1 -delete
for app in "Activity Monitor" "Address Book" "Calendar" "Contacts" "cfprefsd" \
"Dock" "Finder" "Mail" "Messages" "Safari" "SystemUIServer"
do
killall "${app}" > /dev/null 2>&1
done
printf "Your configuration has been updated and applied!\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment