Skip to content

Instantly share code, notes, and snippets.

Last active January 1, 2024 06:19
Show Gist options
  • Save romanhaa/9804183f242991007b316a59c4ba5e5a to your computer and use it in GitHub Desktop.
Save romanhaa/9804183f242991007b316a59c4ba5e5a to your computer and use it in GitHub Desktop.
macOS settings
# reset with: defaults delete -g <FEATURE>
# dock
# position
defaults write "orientation" -string "right"
# icon size
defaults write "tilesize" -int "36"
# show recents
defaults write "show-recents" -bool "false"
# minimize animation
defaults write "mineffect" -string "scale"
# restart dock
killall Dock
# finder
# show "Quit" menu item
defaults write "QuitMenuItem" -bool "true"
# show all file extensions
defaults write NSGlobalDomain "AppleShowAllExtensions" -bool "true"
# show hidden files
defaults write "AppleShowAllFiles" -bool "true"
# do not show warning when changing file extensions
defaults write "FXEnableExtensionChangeWarning" -bool "false"
# do not use iCloud as default file storage destination
defaults write NSGlobalDomain "NSDocumentSaveNewDocumentsToCloud" -bool "false"
# remove delay when hovering title
defaults write NSGlobalDomain "NSToolbarTitleViewRolloverDelay" -float "0"
# restart finder
killall Finder
# menu bar
# set date/time format
defaults write "DateFormat" -string "\"d MMM HH:mm\""
# mission control
# deactivate auto rearrange
defaults write "mru-spaces" -bool "false"
# restart dock
killall Dock
# feedback assistant
# do not autogather large files when submitting a report
defaults write "Autogather" -bool "false"
# enable spring loading for Dock items
defaults write "enable-spring-load-actions-on-all-items" -bool "true" && killall Dock
# disable "Application Downloaded from Internet" popup
defaults write "LSQuarantine" -bool "false"
# expand save panel by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 -bool true
# expand print panel by default
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true
# show accent menu when long-pressing key
defaults write -g ApplePressAndHoldEnabled -bool true
# drag windows by holding CTRL + CMD and clicking anywhere in the window
# does not work with all applications
defaults write -g NSWindowShouldDragOnGesture -bool true
# navigate UI elements with keyboard (tab key)
# alternatively: System Preferences -> Keyboard -> Shortcuts -> check "Use keyboard navigation to move focus between controls"
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
# disable animation when opening the info window in finder (CMD + I)
defaults write DisableAllAnimations -bool true
# disable animations when opening an application from the dock
defaults write launchanim -bool false
# make all animations faster that are used by mission control
defaults write expose-animation-duration -float 0.1
# mail
# disable the animation when you sending and replying an email
defaults write DisableReplyAnimations -bool true
defaults write DisableSendAnimations -bool true
# always show scrollbars
defaults write NSGlobalDomain AppleShowScrollBars -string "Always"
# increase window resize speed for Cocoa applications
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
# automatically quit printer app once the print jobs complete
defaults write "Quit When Finished" -bool true
# reveal IP address, hostname, OS version, etc. when clicking the clock in the login window
sudo defaults write /Library/Preferences/ AdminHostInfo HostName
# disable automatic capitalization
defaults write NSGlobalDomain NSAutomaticCapitalizationEnabled -bool false
# disable smart dashes
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
# disable automatic period substitution
defaults write NSGlobalDomain NSAutomaticPeriodSubstitutionEnabled -bool false
# disable smart quotes
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
# disable auto-correct
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
# trackpad
# enable tap to click for this user and for the login screen
defaults write Clicking -bool true
defaults -currentHost write NSGlobalDomain -int 1
defaults write NSGlobalDomain -int 1
# Set language and text formats
# Note: if you’re in the US, replace `EUR` with `USD`, `Centimeters` with
# `Inches`, `en_GB` with `en_US`, and `true` with `false`.
defaults write NSGlobalDomain AppleLanguages -array "en-NL"
defaults write NSGlobalDomain AppleLocale -string "en_US@currency=EUR"
defaults write NSGlobalDomain AppleMeasurementUnits -string "Centimeters"
defaults write NSGlobalDomain AppleMetricUnits -bool true
# show language menu in the top right corner of the boot screen
sudo defaults write /Library/Preferences/ showInputMenu -bool false
# set the timezone; see `sudo systemsetup -listtimezones` for other values
sudo systemsetup -settimezone "Europe/Amsterdam" > /dev/null
# other
# - remove spotlight icon from menu bar (CMD + drag)
# firefox
# -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment