forked from colonelpanic/dotfiles
Remove unused stuff from osx.sh
This commit is contained in:
parent
0ee8ce71af
commit
0f28996576
148
resources/osx.sh
148
resources/osx.sh
@ -1,6 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
# ~/.osx — http://mths.be/osx
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Ask for the administrator password upfront
|
||||
sudo -v
|
||||
@ -37,18 +35,6 @@ defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
|
||||
# Increase window resize speed for Cocoa applications
|
||||
defaults write NSGlobalDomain NSWindowResizeTime -float 0.08
|
||||
|
||||
# Expand save panel by default
|
||||
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
|
||||
|
||||
# Expand print panel by default
|
||||
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
|
||||
|
||||
# Save to disk (not to iCloud) by default
|
||||
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
|
||||
|
||||
# Automatically quit printer app once the print jobs complete
|
||||
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
|
||||
|
||||
# Disable the “Are you sure you want to open this application?” dialog
|
||||
defaults write com.apple.LaunchServices LSQuarantine -bool false
|
||||
|
||||
@ -65,8 +51,6 @@ defaults write NSGlobalDomain NSDisableAutomaticTermination -bool true
|
||||
# Set Help Viewer windows to non-floating mode
|
||||
defaults write com.apple.helpviewer DevMode -bool true
|
||||
|
||||
#echo "0x08000100:0" > ~/.CFUserTextEncoding
|
||||
|
||||
# Reveal IP address, hostname, OS version, etc. when clicking the clock
|
||||
# in the login window
|
||||
sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName
|
||||
@ -100,7 +84,6 @@ defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
|
||||
echo -n 'a' | sudo tee /private/var/db/.AccessibilityAPIEnabled > /dev/null 2>&1
|
||||
sudo chmod 444 /private/var/db/.AccessibilityAPIEnabled
|
||||
# TODO: avoid GUI password prompt somehow (http://apple.stackexchange.com/q/60476/4408)
|
||||
#sudo osascript -e 'tell application "System Events" to set UI elements enabled to true'
|
||||
|
||||
# Use scroll gesture with the Ctrl (^) modifier key to zoom
|
||||
defaults write com.apple.universalaccess closeViewScrollWheelToggle -bool true
|
||||
@ -160,9 +143,6 @@ sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutio
|
||||
# Finder: allow quitting via ⌘ + Q; doing so will also hide desktop icons
|
||||
defaults write com.apple.finder QuitMenuItem -bool true
|
||||
|
||||
# Finder: disable window animations and Get Info animations
|
||||
defaults write com.apple.finder DisableAllAnimations -bool true
|
||||
|
||||
# Show icons for hard drives, servers, and removable media on the desktop
|
||||
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
|
||||
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true
|
||||
@ -263,17 +243,6 @@ defaults write com.apple.dock enable-spring-load-actions-on-all-items -bool true
|
||||
# Show indicator lights for open applications in the Dock
|
||||
defaults write com.apple.dock show-process-indicators -bool true
|
||||
|
||||
# Wipe all (default) app icons from the Dock
|
||||
# This is only really useful when setting up a new Mac, or if you don’t use
|
||||
# the Dock to launch apps.
|
||||
# defaults write com.apple.dock persistent-apps -array
|
||||
|
||||
# Don’t animate opening applications from the Dock
|
||||
defaults write com.apple.dock launchanim -bool false
|
||||
|
||||
# Speed up Mission Control animations
|
||||
defaults write com.apple.dock expose-animation-duration -float .5
|
||||
|
||||
# Don’t group windows by application in Mission Control
|
||||
# (i.e. use the old Exposé behavior instead)
|
||||
defaults write com.apple.dock expose-group-by-app -bool false
|
||||
@ -296,14 +265,6 @@ defaults write com.apple.dock showhidden -bool true
|
||||
# Reset Launchpad
|
||||
find ~/Library/Application\ Support/Dock -name "*.db" -maxdepth 1 -delete
|
||||
|
||||
# Add iOS Simulator to Launchpad
|
||||
ln -s /Applications/Xcode.app/Contents/Applications/iPhone\ Simulator.app /Applications/iOS\ Simulator.app
|
||||
|
||||
# Add a spacer to the left side of the Dock (where the applications are)
|
||||
#defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
|
||||
# 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";}'
|
||||
|
||||
# Hot corners
|
||||
# Possible values:
|
||||
# 0: no-op
|
||||
@ -318,91 +279,9 @@ ln -s /Applications/Xcode.app/Contents/Applications/iPhone\ Simulator.app /Appli
|
||||
# Top right screen corner → Desktop
|
||||
defaults write com.apple.dock wvous-tr-corner -int 4
|
||||
defaults write com.apple.dock wvous-tr-modifier -int 0
|
||||
# Bottom left screen corner → Start screen saver
|
||||
defaults write com.apple.dock wvous-bl-corner -int 5
|
||||
defaults write com.apple.dock wvous-bl-modifier -int 0
|
||||
|
||||
###############################################################################
|
||||
# Safari & WebKit #
|
||||
###############################################################################
|
||||
|
||||
# Set Safari’s home page to `about:blank` for faster loading
|
||||
defaults write com.apple.Safari HomePage -string "about:blank"
|
||||
|
||||
# Prevent Safari from opening ‘safe’ files automatically after downloading
|
||||
defaults write com.apple.Safari AutoOpenSafeDownloads -bool false
|
||||
|
||||
# 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
|
||||
|
||||
# Hide Safari’s bookmarks bar by default
|
||||
defaults write com.apple.Safari ShowFavoritesBar -bool false
|
||||
|
||||
# Disable Safari’s thumbnail cache for History and Top Sites
|
||||
defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2
|
||||
|
||||
# Enable Safari’s debug menu
|
||||
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
|
||||
|
||||
# Make Safari’s search banners default to Contains instead of Starts With
|
||||
defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false
|
||||
|
||||
# Remove useless icons from Safari’s bookmarks bar
|
||||
defaults write com.apple.Safari ProxiesInBookmarksBar "()"
|
||||
|
||||
# Enable the Develop menu and the Web Inspector in Safari
|
||||
defaults write com.apple.Safari IncludeDevelopMenu -bool true
|
||||
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
|
||||
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled -bool true
|
||||
|
||||
# Add a context menu item for showing the Web Inspector in web views
|
||||
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
|
||||
|
||||
###############################################################################
|
||||
# iTunes (pre-iTunes 11 only) #
|
||||
###############################################################################
|
||||
|
||||
# Disable the iTunes store link arrows
|
||||
defaults write com.apple.iTunes show-store-link-arrows -bool false
|
||||
|
||||
# Disable the Genius sidebar in iTunes
|
||||
defaults write com.apple.iTunes disableGeniusSidebar -bool true
|
||||
|
||||
# Disable radio stations in iTunes
|
||||
defaults write com.apple.iTunes disableRadio -bool true
|
||||
|
||||
# Make ⌘ + F focus the search input in iTunes
|
||||
# To use these commands in another language, browse iTunes’s package contents,
|
||||
# open `Contents/Resources/your-language.lproj/Localizable.strings`, and look
|
||||
# for `kHiddenMenuItemTargetSearch`.
|
||||
defaults write com.apple.iTunes NSUserKeyEquivalents -dict-add "Target Search Field" "@F"
|
||||
|
||||
###############################################################################
|
||||
# Mail #
|
||||
###############################################################################
|
||||
|
||||
# Disable send and reply animations in Mail.app
|
||||
defaults write com.apple.mail DisableReplyAnimations -bool true
|
||||
defaults write com.apple.mail DisableSendAnimations -bool true
|
||||
|
||||
# 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
|
||||
|
||||
# Add the keyboard shortcut ⌘ + Enter to send an email in Mail.app
|
||||
defaults write com.apple.mail NSUserKeyEquivalents -dict-add "Send" "@\\U21a9"
|
||||
|
||||
###############################################################################
|
||||
# Terminal #
|
||||
###############################################################################
|
||||
|
||||
# Only use UTF-8 in Terminal.app
|
||||
defaults write com.apple.terminal StringEncodings -array 4
|
||||
|
||||
# Enable “focus follows mouse” for Terminal.app and all X11 apps
|
||||
# i.e. hover over a window and start typing in it without clicking first
|
||||
#defaults write com.apple.terminal FocusFollowsMouse -bool true
|
||||
#defaults write org.x.X11 wm_ffm -bool true
|
||||
|
||||
###############################################################################
|
||||
# Time Machine #
|
||||
###############################################################################
|
||||
@ -482,28 +361,3 @@ defaults write org.m0k.transmission DeleteOriginalTorrent -bool true
|
||||
defaults write org.m0k.transmission WarningDonate -bool false
|
||||
# Hide the legal disclaimer
|
||||
defaults write org.m0k.transmission WarningLegal -bool false
|
||||
|
||||
###############################################################################
|
||||
# Twitter.app #
|
||||
###############################################################################
|
||||
|
||||
# Disable smart quotes as it’s 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 it’s not the front-most window
|
||||
defaults write com.twitter.twitter-mac HideInBackground -bool true
|
||||
|
Loading…
Reference in New Issue
Block a user