defaults allows users to read, write, and delete Mac OS X user defaults from a command-line shell.


Set some boolean values

defaults write NSGlobalDomain     NSAutomaticQuoteSubstitutionEnabled -bool false
defaults write NSGlobalDomain     NSAutomaticDashSubstitutionEnabled  -bool false
defaults write SmartQuotes                         -bool false
defaults write SmartDashes                         -bool false

Add a value (an array) to a dict

defaults write "${FILENAME}" GlobalKeyMap -dict-add 0xf703-0x280000 '{ Action = 10; Text = f; }'
defaults write "${FILENAME}" GlobalKeyMap -dict-add 0xf702-0x280000 '{ Action = 10; Text = b; }'