aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/bash-completion.rb15
1 files changed, 10 insertions, 5 deletions
diff --git a/Library/Formula/bash-completion.rb b/Library/Formula/bash-completion.rb
index a7401646e..33016e604 100644
--- a/Library/Formula/bash-completion.rb
+++ b/Library/Formula/bash-completion.rb
@@ -15,15 +15,20 @@ class BashCompletion < Formula
system "./configure", "--prefix=#{prefix}"
system "make install"
- ln_s "#{HOMEBREW_PREFIX}/Library/Contributions/brew_bash_completion.sh", "#{etc}/bash_completion.d" unless
- File.exists? "#{etc}/bash_completion.d/brew_bash_completion.sh" or File.symlink? "#{etc}/bash_completion.d/brew_bash_completion.sh"
+ # Cause the build to fails if you haven't already installed git or something else that
+ # creates a bash_completion.d
+ # ln_s "#{HOMEBREW_PREFIX}/Library/Contributions/brew_bash_completion.sh", "#{etc}/bash_completion.d" unless
+ # File.exists? "#{etc}/bash_completion.d/brew_bash_completion.sh" or File.symlink? "#{etc}/bash_completion.d/brew_bash_completion.sh"
end
def caveats; <<-EOS
Add the following lines to your ~/.bash_profile file:
-if [ -f `brew --prefix`/etc/bash_completion ]; then
- . `brew --prefix`/etc/bash_completion
-fi
+ if [ -f `brew --prefix`/etc/bash_completion ]; then
+ . `brew --prefix`/etc/bash_completion
+ fi
+
+To install Homebrew's own completion script:
+ ln "#{HOMEBREW_PREFIX}/Library/Contributions/brew_bash_completion.sh", "#{etc}/bash_completion.d"
EOS
end
end