-
-
Save mtnmts/ddbd8185ab75b14ae99c2aa4e45fe522 to your computer and use it in GitHub Desktop.
When spotlight indexing turns to shit...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Reference: https://apple.stackexchange.com/questions/62715/applications-dont-show-up-in-spotlight | |
sudo mdutil -a -i off | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist | |
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist | |
sudo mdutil -a -i on / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment