diff options
| -rw-r--r-- | Library/Contributions/brew_bash_completion.sh | 3 | ||||
| -rwxr-xr-x | bin/brew | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh index ddd9c17e0..756621cf5 100644 --- a/Library/Contributions/brew_bash_completion.sh +++ b/Library/Contributions/brew_bash_completion.sh @@ -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... @@ -75,6 +75,8 @@ begin case arg = ARGV.shift when '--prefix' puts HOMEBREW_PREFIX + when '--repository' + puts HOMEBREW_REPOSITORY when '--config' dump_config |
