aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAdam Vandenberg2010-01-13 10:03:49 -0800
committerMax Howell2010-01-16 15:33:32 +0000
commit9dc39c391a8bf81d680c7601a1097a02b91d13f4 (patch)
treeb606ff077159b41cd59d0b1537e19fa10bae4a53 /bin
parentbe842ee554f6720a202f0622000e142e3e4ab776 (diff)
downloadbrew-9dc39c391a8bf81d680c7601a1097a02b91d13f4.tar.bz2
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.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew2
1 files changed, 2 insertions, 0 deletions
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