From 92a2299aa1ece01519927a43ba771450981d5239 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 28 Jun 2012 19:45:03 +0200 Subject: [PATCH] some updates from mathiasbynens/dotfiles --- brew | 2 ++ osx | 63 ++++++++++++++++++++++++++++++++++++++++++++++++------------ 2 files changed, 53 insertions(+), 12 deletions(-) diff --git a/brew b/brew index dcae4ac..c58795d 100644 --- a/brew +++ b/brew @@ -1,3 +1,5 @@ +#!/bin/bash + # Make sure we’re using the latest Homebrew brew update diff --git a/osx b/osx index e059d47..403c314 100755 --- a/osx +++ b/osx @@ -4,6 +4,10 @@ # https://github.com/mathiasbynens/dotfiles/blob/master/.osx ######################################################################## +############################################################################### +# General UI/UX # +############################################################################### + # Expand save panel by default defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true @@ -13,18 +17,36 @@ defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true # Disable the “Are you sure you want to open this application?” dialog defaults write com.apple.LaunchServices LSQuarantine -bool false +# Disable automatic termination of inactive apps +defaults write NSGlobalDomain NSDisableAutomaticTermination -bool true + +############################################################################### +# Trackpad, mouse, keyboard, and input # +############################################################################### + # Disable auto-correct defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false +############################################################################### +# Screen # +############################################################################### + # Save screenshots to the desktop defaults write com.apple.screencapture location -string "$HOME/Desktop" # Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF) defaults write com.apple.screencapture type -string "png" +############################################################################### +# Finder # +############################################################################### + # Allow text selection in Quick Look defaults write com.apple.finder QLEnableTextSelection -bool true +# Disable the warning when changing a file extension +defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false + # Disable disk image verification defaults write com.apple.frameworks.diskimages skip-verify -bool true defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true @@ -38,9 +60,6 @@ defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true # Avoid creating .DS_Store files on network volumes defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true -# Disable the warning when changing a file extension -defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false - # Enable snap-to-grid for desktop icons /usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist @@ -51,7 +70,11 @@ defaults write com.apple.finder WarnOnEmptyTrash -bool false #defaults write com.apple.finder EmptyTrashSecurely -bool true # Show the ~/Library folder -chflags nohidden ~/Library +chflags nohidden ~/Library + +############################################################################### +# Dock & hot corners # +############################################################################### # Show indicator lights for open applications in the Dock defaults write com.apple.dock show-process-indicators -bool true @@ -61,6 +84,10 @@ defaults write com.apple.dock show-process-indicators -bool true # Add a spacer to the right side of the Dock (where the Trash is) #defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="spacer-tile";}' +############################################################################### +# Safari & WebKit # +############################################################################### + # Enable Safari's develop menu #defaults write com.apple.Safari IncludeDevelopMenu -bool true #defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true @@ -71,16 +98,28 @@ defaults write com.apple.dock show-process-indicators -bool true # Make Safari’s search banners default to Contains instead of Starts With defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false -# Only use UTF-8 in Terminal.app -defaults write com.apple.terminal StringEncodings -array 4 +# Set web style sheet +defaults write com.apple.Safari UserStyleSheetEnabled -bool true +defaults write com.apple.Safari UserStyleSheetLocationURLString -string "~/.dotfiles/webstyle.css" +defaults write com.apple.Safari WebKitUserStyleSheetLocationPreferenceKey -string "~/.dotfiles/webstyle.css" + +############################################################################### +# Address Book, Dashboard, iCal, iTunes, Mail, and Disk Utility # +############################################################################### # Copy email addresses as `foo@example.com` instead of `Foo Bar ` in Mail.app defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false -# Prevent Time Machine from prompting to use new hard drives as backup volume -defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true +############################################################################### +# Terminal # +############################################################################### -# Set web style sheet -defaults write com.apple.Safari UserStyleSheetEnabled -bool true -defaults write com.apple.Safari UserStyleSheetLocationURLString -string "~/.dotfiles/webstyle.css" -defaults write com.apple.Safari WebKitUserStyleSheetLocationPreferenceKey -string "~/.dotfiles/webstyle.css" \ No newline at end of file +# Only use UTF-8 in Terminal.app +defaults write com.apple.terminal StringEncodings -array 4 + +############################################################################### +# Time Machine # +############################################################################### + +# Prevent Time Machine from prompting to use new hard drives as backup volume +defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true \ No newline at end of file