diff options
| author | Jonathan Hitchcock | 2011-04-10 15:55:28 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-04-10 16:16:39 -0700 |
| commit | 1513006ba36a8d548048ffca04c36a100504de62 (patch) | |
| tree | 3b0b9f349d1594694cbd2b90352cddd727edd9d8 /Library/Formula/bash-completion.rb | |
| parent | ce00963228188ba7c0475646a450c3d06bf48a99 (diff) | |
| download | homebrew-1513006ba36a8d548048ffca04c36a100504de62.tar.bz2 | |
bash-complete: update docs for brew's complete script
Make a symbolic link to brew's bash completion script, instead of a hard link.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/bash-completion.rb')
| -rw-r--r-- | Library/Formula/bash-completion.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Library/Formula/bash-completion.rb b/Library/Formula/bash-completion.rb index 478b4fa0b..1cbfcbd82 100644 --- a/Library/Formula/bash-completion.rb +++ b/Library/Formula/bash-completion.rb @@ -27,14 +27,14 @@ class BashCompletion < Formula # 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 + def caveats; <<-EOS.undent + Add the following lines to your ~/.bash_profile file: + 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" + To install Homebrew's own completion script: + ln -s "#{HOMEBREW_PREFIX}/Library/Contributions/brew_bash_completion.sh" "#{etc}/bash_completion.d" EOS end end |
