Skip to content

Instantly share code, notes, and snippets.

Last active April 23, 2022 22:37
  • Star 44 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save koenbok/60aaf06ae0428603896ea0d872dcdf16 to your computer and use it in GitHub Desktop.
My Favorite Mac Tweaks

Skip verifying disk images

defaults write skip-verify true

Always hide the Desktop

defaults write CreateDesktop false; killall Finder

Make terminal logins fast

touch ~/.hushlogin

Disable most animations

defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

defaults write -g QLPanelAnimationDuration -float 0

defaults write NSGlobalDomain NSWindowResizeTime -float 0.001

defaults write DisableAllAnimations -bool true

Increase the key repeat rate

defaults write NSGlobalDomain KeyRepeat -int 1

Disable save to iCloud by default

defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false

Copy link

Stop Finder from writing .DS_Store files on network volumes

defaults write DSDontWriteNetworkStores -bool true

Disable character substitution for dashes (i.e: -- replaced by —) even when character substitution is enabled

defaults write -g NSAutomaticDashSubstitutionEnabled 0

Disable the horrible character chooser popup, and get proper key repeat

defaults write -g ApplePressAndHoldEnabled -bool false

Show user Library

chflags nohidden ~/Library

Make Help use a regular window

defaults write DevMode -bool true

Disable Dashboard

defaults write mcx-disabled -bool true

Copy link

Set an Ultra-Fast Dock Hide & Display Animation

defaults write autohide-time-modifier -float 0.12;killall Dock

Copy link

mrenty commented Dec 17, 2016

Prevent your MacBook from booting after opening the lid

sudo nvram AutoBoot=%00

To restore it to factory setting

sudo nvram AutoBoot=%03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment