Skip to content

Instantly share code, notes, and snippets.

@matthewbodaly
Created April 29, 2016 21:01
Show Gist options
  • Save matthewbodaly/8959afdb555bb3ef4a21b2340d11af07 to your computer and use it in GitHub Desktop.
Save matthewbodaly/8959afdb555bb3ef4a21b2340d11af07 to your computer and use it in GitHub Desktop.
Reset Spotlight. I mean... really. who wants to do this.
#!/bin/bash
# you shouldn't have to do this but.....
rm -rf /Library/Managed\ Preferences/*Spotlight*
rm -rf /Library/Managed\ Preferences/*/*Spotlight*
killall Spotlight
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment