Last active
October 12, 2019 11:58
-
-
Save jldavid/7947220b399dc69bd0170dc2a8100bf8 to your computer and use it in GitHub Desktop.
FIX: Reindex Spotlight if apps are missing on Mac during Search
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