Skip to content

Instantly share code, notes, and snippets.

@isanosian
Created June 22, 2012 16:09
Show Gist options
  • Save isanosian/2973744 to your computer and use it in GitHub Desktop.
Save isanosian/2973744 to your computer and use it in GitHub Desktop.
mac os x: disable and enable spotlight
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search
killall SystemUIServer
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
sudo chmod 755 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search
killall SystemUIServer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment