Skip to content

Instantly share code, notes, and snippets.

@fjcero
Forked from einfallstoll/README.md
Created July 26, 2016 17:19
Show Gist options
  • Save fjcero/7fa42662d4bad18492aed28e6ee43a01 to your computer and use it in GitHub Desktop.
Save fjcero/7fa42662d4bad18492aed28e6ee43a01 to your computer and use it in GitHub Desktop.
Reset Spotlight Location (Fix for OS X 10.11 El Capitan)

Installation for GUI Users

  1. Right click the file and choose information and choose to always open this file with Terminal.app

  2. Go to the Terminal.app and do something like this chmod 744 Reset Spotlight.sh

  3. There you go, you can now double click it so reset the Spotlight location

  4. Optional: Uncomment line for the useCount to prevent Spotlight to forget that you already used it

#!/bin/sh
# Delete all information saved by Spotlight
defaults delete com.apple.Spotlight
# Restart Spotlight
killall Spotlight
# Uncomment to prevent Spotlight to always introduce itself as new
# defaults write com.apple.Spotlight useCount 5
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment