Skip to content

Instantly share code, notes, and snippets.

@glyphobet
Created September 8, 2012 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glyphobet/3676260 to your computer and use it in GitHub Desktop.
Save glyphobet/3676260 to your computer and use it in GitHub Desktop.
Fixes for Chrome and Mac OS X
# Use Mac OS X's print dialog instead of Chrome's idiotic print dialog
defaults write com.google.Chrome NSUserKeyEquivalents -dict-add 'Print Using System Dialog...' '@p' 'Print...' '~@p'
# Prevent Chrome from automatically deciding you want search results in German instead of English
find ~/Library/Application\ Support/Google/Chrome -name Preferences -print0 | xargs -0 perl -pi.bak -e 's{_google_url": "http://www.google.de/",}{_google_url": "http://www.google.com/",}g;'
# Add Quit menu item to Finder
defaults write com.apple.finder QuitMenuItem -bool yes
# Change Preview to default to "Single Page" view
defaults write com.apple.Preview PVPDFDisplayMode -int 2
# Set the icon size of Dock items to 40 pixels
defaults write com.apple.dock tilesize -int 40
# Save to disk (not to iCloud) by default
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
# Load git autocompletion from MacPorts package
source /opt/local/share/doc/git-core/contrib/completion/git-completion.bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment