Created
October 19, 2017 07:32
-
-
Save afjoseph/d8afbbce1b73481fbd0410c0897b6a87 to your computer and use it in GitHub Desktop.
When spotlight indexing turns to shit...
This file contains hidden or 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