From fac04d144178c43ba27f9b5f6647fd98aa73b9b0 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Sun, 27 Oct 2013 08:55:58 +0100 Subject: .osx: Suppress error messages when running `~/.osx` twice Closes #266. --- .osx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.osx b/.osx index 804a74e..bf28dd9 100755 --- a/.osx +++ b/.osx @@ -104,7 +104,7 @@ systemsetup -setcomputersleep Off > /dev/null defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1 # Disable Notification Center and remove the menu bar icon -launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist +launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist 2> /dev/null ############################################################################### # Trackpad, mouse, keyboard, Bluetooth accessories, and input # @@ -168,7 +168,7 @@ systemsetup -settimezone "Europe/Brussels" > /dev/null defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false # Stop iTunes from responding to the keyboard media keys -#launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist +#launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist 2> /dev/null ############################################################################### # Screen # @@ -356,7 +356,7 @@ defaults write com.apple.dock showhidden -bool true 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 +sudo ln -sf /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";}' @@ -475,11 +475,11 @@ defaults write com.apple.spotlight orderedItems -array \ '{"enabled" = 0;"name" = "SPREADSHEETS";}' \ '{"enabled" = 0;"name" = "SOURCE";}' # Load new settings before rebuilding the index -killall mds +killall mds > /dev/null 2>&1 # Make sure indexing is enabled for the main volume -sudo mdutil -i on / +sudo mdutil -i on / > /dev/null # Rebuild the index from scratch -sudo mdutil -E / +sudo mdutil -E / > /dev/null ############################################################################### # Terminal # -- cgit v1.2.3