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 have installed MacVim through homebrew, and this resulted in an alias in ~/Applications that points to /usr/local/Cellar/macvim/7.3-66/MacVim.app.

Unfortunately MacVim does not show up in Spotlight searches. Is this normal?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

It's actually a symlink and not an alias. Spotlight indexes symlinks to files that are treated as system files, but it doesn't show them in the GUI. It does show aliases though, so you could just command-drag /usr/local/Cellar/macvim/*/MacVim.app to /Applications from Finder.

Or convert the symlinks to aliases:

brew linkapps; find ~/Applications -type l | while read f; do osascript -e "tell app \"Finder\" to make new alias file at POSIX file \"/Applications\" to POSIX file \"$(stat -f%Y "$f")\""; rm "$f"; done

Or if you use Alfred, it can be set to include applications in /usr/local/Cellar in the default search results.

share|improve this answer
    
Nice little AppleScript. –  echristopherson Jul 8 '13 at 22:55
    
After running the script MacVim is now visible in the results (categorized as a document) –  michielvoo Jul 9 '13 at 6:17
add comment

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.