Skip to content

Instantly share code, notes, and snippets.

@j-jith
Created February 20, 2017 12:35
Show Gist options
  • Save j-jith/1b5da1e609cdb064d995545f35886c7d to your computer and use it in GitHub Desktop.
Save j-jith/1b5da1e609cdb064d995545f35886c7d to your computer and use it in GitHub Desktop.
Letting Spotlight find Brew Apps on MacOSX

Say, you want spotlight to find MacVim. Doing

brew linkapps macvim

creates a symlink in /Applications. But Spotlight seems to ignore it. Instead, remove the symlink

rm /Applications/MacVim.app

and do

osascript -e 'tell application "Finder" to make alias file to POSIX file "/usr/local/opt/macvim/MacVim.app" at POSIX file "/Applications"'
@douo
Copy link

douo commented Jul 7, 2022

Nice!

@bengrosser
Copy link

just what i needed, thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment