Set macvim as default application after homebrew installation
Solution 1:
I had the same issue. I moved MacVim.app to /Applications
and then symlinked it into the Homebrew cellar directory.
mv /usr/local/Cellar/macvim/7.3-65/MacVim.app /Applications/
ln -s /Applications/MacVim.app /usr/local/Cellar/macvim/7.3-65/
Solution 2:
Correction: This is no longer the case, see https://github.com/Homebrew/homebrew/issues/8699
Note that brew linkapps
puts links in ~/Applications
, not /Applications
. I had to follow the symlink (select your home directory from Favorites, select the Applications
icon in the main pane, and click Open
), then pull down the path list-box near the top of the dialog box (or hit Command+Up) to go one level back up the physical path. Then you can see the icon for the actual .app
folder.
Solution 3:
You can set the default app from Finder.
- Select the file (e.g. foo.rb) and then choose 'Get Info' (command I, or File | Get Info).
- Open the 'Open with' section.
- Select your default app and then press 'Change All...'.
Solution 4:
Try running brew linkapps
. That's how you're supposed to do it, but it never works for me; if the same is true for you, do ln -s /usr/local/Cellar/macvim/7.3-64/MacVim.app /Applications
(substituting the actual location of the app, if it differs on your system).
Homebrew should have told you that when you installed MacVim.