Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed Alfred through homebrew-cask. I want to disable Spotlight and let Alfred be opened with Cmd+S.

The first Terminal-based solution I tried was unloading Spotlight with sudo launchctl unload -w /System/Library/LaunchDaemons/ However, this makes homebrew fail with "couldn't get the client port", and it's known.

The second one was to change Spotlight shortcut by accessing System Preferences -> Spotlight and disabling the option "Spotlight menu keyboard shortcut". It worked.

What I still don't like is that this solution isn't portable, and I can't add that to my dotfiles. Also, Spotlight still runs, but I think I will have to deal with it because I need homebrew to work.

share|improve this question

Alfred requires Spotlight to function properly.

Alfred relies on the same OS X metadata index as Spotlight. As such, it's important for you to let Spotlight run on your Mac to maintain an index of the files on it.

This answer to a similar question provides a shell command to stop Spotlight's GUI only, which will disable Spotlight's shortcut.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.