Some bulletproofing for bash completion script.
Since Homebrew's Library doesn't have to be linked under prefix, we need to do some extra work in the bash completion script to support this configuration. Added a "--repository" option to brew, and updated the completion script to use paths relative to this location.
This commit is contained in:
parent
be842ee554
commit
9dc39c391a
@ -21,8 +21,7 @@ _brew_to_completion()
|
||||
return 0
|
||||
# Subcommands
|
||||
else
|
||||
brew_base=`which brew`
|
||||
brew_base=`dirname ${brew_base}`/..
|
||||
brew_base=`brew --repository`
|
||||
|
||||
case ${prev} in
|
||||
# Commands that take a formula...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user