Skip to content

Instantly share code, notes, and snippets.

@mtnmts
Forked from afjoseph/stupid-spotlight.sh
Created February 12, 2018 15:35
Show Gist options
  • Save mtnmts/ddbd8185ab75b14ae99c2aa4e45fe522 to your computer and use it in GitHub Desktop.
Save mtnmts/ddbd8185ab75b14ae99c2aa4e45fe522 to your computer and use it in GitHub Desktop.
When spotlight indexing turns to shit...
#!/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