Over the years I’ve discovered an array of OS X defaults that make my life easier and performing tasks quicker. One of the reasons I learnt Vim was because I was using my mouse far too much for repetitive tasks.
You should know what you’re doing when using the Terminal. Don’t blame me when you break something 👊.
defaults write NSGlobalDomain KeyRepeat -int 0.02
defaults write NSGlobalDomain InitialKeyRepeat -int 12
defaults write com.apple.terminal StringEncodings -array 4
This might not be a developer friendly default, but you can keep your code secure when your screensaver starts and you have to leave your hot desk.
defaults write com.apple.screensaver askForPassword -int 1defaults write com.apple.screensaver askForPasswordDelay -int 0
These aren't developer specific but really helpful. 💯
sudo nvram SystemAudioVolume=" "
If you have to use the Dock, speed up the time it animates in and out.
defaults write com.apple.dock autohide -bool truedefaults write com.apple.dock autohide-time-modifier -float 0.5killall Dock
Expanding the Save and Print modals in OS X is a repetitive task and is something you can set to always show if you know how to.
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool truedefaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
~/Library
Maybe you're a frequent visitor of the ~/Library folder. I always forget the ALT shortcut when in Finder to show ~/Library
.
chflags nohidden ~/Library
Window captures come with a shadow effect by default. You can remove it.
defaults write com.apple.screencapture disable-shadow -bool true
Open an application from the web without being asked if that's what you really want to do.
defaults write com.apple.LaunchServices LSQuarantine -bool false
Alternatively, you might want to allow apps downloaded from "Anywhere" allowed to be opened.
sudo spctl - master-disable
You'll store your documents and photos in iCloud, your code on GitHub and your music on Spotify. Time Machine doesn't need to ask you if you want to use any storage devices as a backup drive.
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
If you've got any other Mac OS X defaults, please leave a comment to share with others. 👌