Here are a bunch of tweaks I apply to clean installs of OS Lion.
Bonus: Find out more tweaks at Blacktree's Secrets


  • Set default icon size

    defaults write tilesize -float 48

  • Enable magnification

    defaults write magnification -bool true

  • Set magnification icon size

    defaults write largesize -float 96

  • Automatically hide and show the Dock

    defaults write autohide -bool true

  • Display hidden applications as transulcent icons

    defaults write showhidden -bool true

  • Show indicator lights for open applications

    defaults write show-process-indicators -bool true

  • Enable highlight hover effect for the grid view of a stack

    defaults write mouse-over-hilte-stack -bool true

  • Don't animate opening applications

    defaults write launchanim -bool false

  • Don't animate mission control

    defaults write expose-animation-duration -float 0

  • Enable spring loading for all Dock items (Demo)

    defaults write enable-spring-load-actions-on-all-items -boolean true

Global Preferences

  • Disable "Reopen windows when logging back in"

    defaults write TALLogoutSavesState -bool false

  • Revert back to real "natural scrolling"

    defaults write NSGlobalDomain -bool false

  • Enable full keyboard access for all controls (so you can navigate through the UI using keyboard)

    defaults write NSGlobalDomain AppleKeyboardUIMode -int 3

  • Enable subpixel font rendering on non-Apple LCDs

    defaults write NSGlobalDomain AppleFontSmoothing -int 2

  • Disable menu bar transparency

    defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false

  • Always show scrollbars

    defaults write NSGlobalDomain AppleShowScrollBars -string "Always"

  • Show all filename extensions in Finder

    defaults write NSGlobalDomain AppleShowAllExtensions -bool true

  • Expand save panel by default

    defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true

  • Expand print panel by default

    defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true

  • Disable auto-correct

    defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false

  • Disable window animations

    defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

  • Disable press-and-hold (character picker) for keys in favor of key repeat

    defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false

  • Set a blazingly fast keyboard repeat rate

    defaults write NSGlobalDomain KeyRepeat -int 0.02

  • Increase window resize speed for Cocoa applications

    defaults write NSGlobalDomain NSWindowResizeTime -float 0.001

  • Disable resume system-wide

    defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false

  • Disable New Window animations

    defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO


  • Allow quitting Finder via ⌘ + Q (so will also hide desktop icons)

    defaults write QuitMenuItem -bool true

  • Display full POSIX path as Finder window title

    defaults write _FXShowPosixPathInTitle -bool true

  • Disable the warning when changing a file extension

    defaults write FXEnableExtensionChangeWarning -bool false

  • Disable the warning before emptying the Trash

    defaults write WarnOnEmptyTrash -bool false

  • Empty Trash securely by default

    defaults write EmptyTrashSecurely -bool true

  • Use current directory as default search scope

    defaults write FXDefaultSearchScope -string "SCcf"

  • Hide iDisk from the sidebar

    defaults write RemoveIDiskFromSidebarOnStartup -bool true

  • Show Path bar

    defaults write ShowPathbar -bool true

  • Show Status bar

    defaults write ShowStatusBar -bool true

Disk Images (DMG)

  • Disable disk image verification

    defaults write skip-verify -bool true defaults write skip-verify-locked -bool true defaults write skip-verify-remote -bool true

  • Automatically open a new Finder window when a volume is mounted

    defaults write auto-open-ro-root -bool true defaults write auto-open-rw-root -bool true


  • Require password immediately after sleep or screen saver begins

    defaults write askForPassword -int 1 defaults write askForPasswordDelay -int 0


  • Disable Safari’s thumbnail cache for History and Top Sites

    defaults write DebugSnapshotsUpdatePolicy -int 2

  • Enable Safari’s debug menu

    defaults write IncludeInternalDebugMenu -bool true

  • Empty bookmarks bar

    defaults write ProxiesInBookmarksBar "()"

  • Only use UTF-8 in

    defaults write StringEncodings -array 4


  • Hide the Ping sidebar

    defaults write disablePingSidebar -bool true

  • Disable all the other Ping stuff in iTunes

    defaults write disablePing -bool true

  • Add invitations to iCal automatically

    defaults write AddInvitationsToICalAutomatically -bool true

  • Display conversation messages in ascendent order

    defaults write ConversationViewSortDescending -bool false

  • Show unred messages in bold

    defaults write ShouldShowUnreadMessagesInBold -bool true

  • Display contact photos

    defaults write EnableContactPhotos -bool true

  • Mark all conversation messages as read when opening a conversation

    defaults write ConversationViewMarkAllAsRead -bool true

  • Do not display a summary of the body

    defaults write NumberOfSnippetLines -int 0

  • Disable send and reply animations in

    defaults write DisableReplyAnimations -bool true defaults write DisableSendAnimations -bool true


  • Disable crash reporter

    defaults write DialogType -string "none"

  • Set computer name

    sudo /usr/sbin/networksetup -setcomputername 'Macbook Pro'

  • Allow only a single definition window when defining a word (``)

    defaults write ProhibitNewWindowForRequest -bool true

  • Disable the "Are you sure you want to open this application?" dialog

    defaults write LSQuarantine -bool false

  • Enable AirDrop over Ethernet and on unsupported Macs running Lion

    defaults write BrowseAllInterfaces -bool true

  • Disable window restore

    defaults write NSQuitAlwaysKeepsWindows -bool false

  • Avoid creating .DS_Store files on network volumes

    defaults write DSDontWriteNetworkStores -bool true

  • Disable Dashboard

    defaults write mcx-disabled -boolean true

  • Show remaining battery time; hide percentage

    defaults write ShowPercent -string "NO" defaults write ShowTime -string "YES"

  • Disable local Time Machine backups

    hash tmutil &> /dev/null && sudo tmutil disablelocal

  • Enable Verbose boot

    sudo nvram boot-args="-v"

  • Show the ~/Library directory

    chflags nohidden ~/Library

  • Hide ~/bin directory

    chflags hidden ~/bin

  • Disable Spotlight

    sudo mdutil -a -i off

  • Disable disk journaling (recommended on SSD disks)

    diskutil disableJournal /Volumes/OSX

  • Disable Hibernation

    sudo pmset -a hibernatemode 0 sudo rm /var/vm/sleepimage

  • Reload affected applications

    for app in Safari Finder Dock Mail SystemUIServer; do killall "$app" >/dev/null 2>&1; done