Skip to content

Instantly share code, notes, and snippets.

@kernkraft235
Forked from miromannino/macos-defaults.sh
Last active March 5, 2024 10:37
Show Gist options
  • Select an option

  • Save kernkraft235/69ccace1ebd441747dc36b8234a46576 to your computer and use it in GitHub Desktop.

Select an option

Save kernkraft235/69ccace1ebd441747dc36b8234a46576 to your computer and use it in GitHub Desktop.
MacOS defaults
# Show hidden files
defaults write com.apple.finder AppleShowAllFiles -boolean true
# Show status bar in Finder
defaults write com.apple.finder ShowStatusBar -bool true
# Show Library folder
chflags nohidden ~/Library
# Show file extensions
defaults write NSGlobalDomain AppleShowAllExtensions -bool false
# Disable warning when changing extension
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# JPG captures instead of PNG
defaults write com.apple.screencapture type jpg
# Text Edit as plain text by default
defaults write com.apple.TextEdit RichText -int 0
killall SystemUIServer
killall Finder
# Disable some animations
# ———————————————————————
# opening and closing windows and popovers
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false
# smooth scrolling
defaults write -g NSScrollAnimationEnabled -bool true
# showing and hiding sheets, resizing preference windows, zooming windows
# float 0 doesn't work
defaults write -g NSWindowResizeTime -float 0.13
# opening and closing Quick Look windows
defaults write -g QLPanelAnimationDuration -float 0.1
# rubberband scrolling (doesn't affect web views)
defaults write -g NSScrollViewRubberbanding -bool false
# resizing windows before and after showing the version browser
# also disabled by NSWindowResizeTime -float 0.001
defaults write -g NSDocumentRevisionsWindowTransformAnimation -bool false
# showing a toolbar or menu bar in full screen
defaults write -g NSToolbarFullScreenAnimationDuration -float 0.2
# scrolling column views
defaults write -g NSBrowserColumnAnimationSpeedMultiplier -float 0
# showing the Dock
defaults write com.apple.dock autohide-time-modifier -float 0
defaults write com.apple.dock autohide-delay -float 0.1
# showing and hiding Mission Control, command+numbers
defaults write com.apple.dock expose-animation-duration -float 0.1
# showing and hiding Launchpad
defaults write com.apple.dock springboard-show-duration -float 0.2
defaults write com.apple.dock springboard-hide-duration -float 0.2
# changing pages in Launchpad
defaults write com.apple.dock springboard-page-duration -float 0.2
# at least AnimateInfoPanes
defaults write com.apple.finder DisableAllAnimations -bool true
# sending messages and opening windows for replies
defaults write com.apple.Mail DisableSendAnimations -bool true
defaults write com.apple.Mail DisableReplyAnimations -bool true
# don’t animate opening applications from the Dock
defaults write com.apple.dock launchanim -bool false
# speed up Mission Control animations
defaults write com.apple.universalaccess reduceMotion -bool true
defaults write com.apple.dock expose-animation-duration -float 0.2
killall Finder && killall Dock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment