Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bash-completion2: fix Homebrew completion installation

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
commit adda1b1ce29f4dc0fe06cf04565245c301af7e9a 1 parent 5ad474b
Jack Nagel jacknagel authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 bash-completion2.rb
5 bash-completion2.rb
View
@@ -14,7 +14,10 @@ def install
ENV.deparallelize
system "make install"
- ln_s HOMEBREW_REPOSITORY/'Contributions/brew_bash_completion.sh', share/'bash-completion/completions/brew'
+ brew_bash_completion = HOMEBREW_REPOSITORY/'Library/Contributions/brew_bash_completion.sh'
+ compdir = HOMEBREW_PREFIX/'share/bash-completion/completions'
+ (compdir/'brew').unlink
+ compdir.install_symlink brew_bash_completion => 'brew'
end
def caveats; <<-EOS.undent
Please sign in to comment.
Something went wrong with that request. Please try again.