Created
April 8, 2011 18:48
-
-
Save tvon/910470 to your computer and use it in GitHub Desktop.
Use homebrew installation of macvim for terminal vim command.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -x `which brew` ]; then | |
macvim_version=`brew list --versions macvim | sed 's/.* \([0-9\.\-]*\)$/\1/'` | |
if [ -n "${macvim_version}" ]; then | |
alias vim=`brew --prefix`/Cellar/macvim/${macvim_version}/MacVim.app/Contents/MacOS/Vim | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment