diff options
| author | Jesus Lopez | 2013-04-19 11:55:19 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-04-19 16:21:55 -0700 |
| commit | a6e5e3a5335c77e79845afca9a4c8bbbb988d3c5 (patch) | |
| tree | 13c772d30e061636872b682fda3ec768e54fafe2 /Library/Formula/vim.rb | |
| parent | 5d48a32e56c2639de330d80ef419f8bea7712bf0 (diff) | |
| download | homebrew-a6e5e3a5335c77e79845afca9a4c8bbbb988d3c5.tar.bz2 | |
vim: Add --override-system-vi option
When specified, `/usr/local/bin/vi` is also symlinked, so that
executing `vi` will launch homebrew's version.
Closes #19309.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/vim.rb')
| -rw-r--r-- | Library/Formula/vim.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/vim.rb b/Library/Formula/vim.rb index 3d1b8434e..a6f28196d 100644 --- a/Library/Formula/vim.rb +++ b/Library/Formula/vim.rb @@ -16,6 +16,7 @@ class Vim < Formula LANGUAGES = %w(lua mzscheme perl python python3 tcl ruby) DEFAULT_LANGUAGES = %w(ruby python) + option "override-system-vi", "Override system vi" LANGUAGES.each do |language| option "with-#{language}", "Build vim with #{language} support" option "without-#{language}", "Build vim without #{language} support" @@ -60,5 +61,6 @@ class Vim < Formula # statically-linked interpreters like ruby # http://code.google.com/p/vim/issues/detail?id=114&thanks=114&ts=1361483471 system "make", "install", "prefix=#{prefix}", "STRIP=/usr/bin/true" + ln_s bin+'vim', bin+'vi' if build.include? 'override-system-vi' end end |
