aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Contributions/brew_bash_completion.sh3
-rwxr-xr-xbin/brew2
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...
diff --git a/bin/brew b/bin/brew
index c3c5938d1..0b14d9751 100755
--- a/bin/brew
+++ b/bin/brew
@@ -75,6 +75,8 @@ begin
case arg = ARGV.shift
when '--prefix'
puts HOMEBREW_PREFIX
+ when '--repository'
+ puts HOMEBREW_REPOSITORY
when '--config'
dump_config