Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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/com.apple.metadata.mds.plist. 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

1 Answer 1

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.

http://support.alfredapp.com/kb:spotlight

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

 
discard

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.