1
0
mirror of https://github.com/kremalicious/dotfiles.git synced 2024-12-22 17:23:26 +01:00

safari stuff

This commit is contained in:
Matthias Kretschmann 2012-11-27 16:38:54 +01:00
parent 8c9fd85d44
commit 3a58c47b65

49
osx
View File

@ -4,6 +4,7 @@
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
########################################################################
###############################################################################
# General UI/UX #
###############################################################################
@ -20,6 +21,7 @@ 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 #
###############################################################################
@ -32,6 +34,9 @@ defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
# Finder #
###############################################################################
# Finder: show status bar
defaults write com.apple.finder ShowStatusBar -bool true
# Allow text selection in Quick Look
defaults write com.apple.finder QLEnableTextSelection -bool true
@ -58,11 +63,12 @@ defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.finder WarnOnEmptyTrash -bool false
# Empty Trash securely by default
#defaults write com.apple.finder EmptyTrashSecurely -bool true
defaults write com.apple.finder EmptyTrashSecurely -bool true
# Show the ~/Library folder
chflags nohidden ~/Library
###############################################################################
# Dock #
###############################################################################
@ -75,10 +81,14 @@ 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 #
###############################################################################
# Allow hitting the Backspace key to go to the previous page in history
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2BackspaceKeyNavigationEnabled -bool true
# Enable Safari's develop menu
#defaults write com.apple.Safari IncludeDevelopMenu -bool true
#defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
@ -90,9 +100,10 @@ defaults write com.apple.dock show-process-indicators -bool true
defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false
# 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"
#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 #
@ -101,6 +112,7 @@ defaults write com.apple.Safari WebKitUserStyleSheetLocationPreferenceKey -strin
# Copy email addresses as `foo@example.com` instead of `Foo Bar <foo@example.com>` in Mail.app
defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false
###############################################################################
# Terminal #
###############################################################################
@ -108,6 +120,7 @@ defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false
# Only use UTF-8 in Terminal.app
defaults write com.apple.terminal StringEncodings -array 4
###############################################################################
# Time Machine #
###############################################################################
@ -116,4 +129,30 @@ defaults write com.apple.terminal StringEncodings -array 4
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
# Disable local Time Machine backups
hash tmutil &> /dev/null && sudo tmutil disablelocal
#hash tmutil &> /dev/null && sudo tmutil disablelocal
###############################################################################
# Twitter.app #
###############################################################################
# Disable smart quotes as its annoying for code tweets
defaults write com.twitter.twitter-mac AutomaticQuoteSubstitutionEnabled -bool false
# Show the app window when clicking the menu icon
defaults write com.twitter.twitter-mac MenuItemBehavior -int 1
# Enable the hidden Develop menu
#defaults write com.twitter.twitter-mac ShowDevelopMenu -bool true
# Open links in the background
defaults write com.twitter.twitter-mac openLinksInBackground -bool true
# Allow closing the new tweet window by pressing `Esc`
defaults write com.twitter.twitter-mac ESCClosesComposeWindow -bool true
# Show full names rather than Twitter handles
defaults write com.twitter.twitter-mac ShowFullNames -bool true
# Hide the app in the background if its not the front-most window
defaults write com.twitter.twitter-mac HideInBackground -bool true