Skip to content

Instantly share code, notes, and snippets.

@paddykontschak
Created July 25, 2012 05:16
Show Gist options
  • Save paddykontschak/3174524 to your computer and use it in GitHub Desktop.
Save paddykontschak/3174524 to your computer and use it in GitHub Desktop.
Lion Tweaks

Six terminal commands to make 10.7 or 10.8 not suck & regain some privacy in OS X

Taken from Bryan Jones' Lion Tweaks.rtf

  1. Disable safe sleep

sudo pmset -a hibernatemode 0
sudo nvram "use-nvramrc?"=false

(Then, delete '/private/var/vm/sleepimage' after a reboot.)

  1. Disable the glass dock

defaults write com.apple.dock no-glass -boolean YES
killall Dock
  1. Disable local Time Machine backups (only needed for laptops)

sudo tmutil disablelocal
  1. Disable recent items list for Preview

defaults delete com.apple.Preview.LSSharedFileList RecentDocuments
defaults write com.apple.Preview NSRecentDocumentsLimit 0
defaults write com.apple.Preview.LSSharedFileList RecentDocuments -dict-add MaxAmount 0
killall Dock
  1. Disable recent items list for Quicktime

defaults delete com.apple.QuickTimePlayerX.LSSharedFileList RecentDocuments
defaults write com.apple.QuickTimePlayerX NSRecentDocumentsLimit 0
defaults write com.apple.QuickTimePlayerX.LSSharedFileList RecentDocuments -dict-add MaxAmount 0
killall Dock
  1. Disable automatic app termination

defaults write -g NSDisableAutomaticTermination -bool YES
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment