aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kühl2010-07-02 19:51:26 +0200
committerAdam Vandenberg2010-08-07 18:08:48 -0700
commitda7854401d708862cb41338c49f00f0486654e23 (patch)
tree72ff86b60f9d0ad3516b67727e107f9bb4406ef3
parent0321acf9bee02903ccb0db7d8b2ff39da26100bf (diff)
downloadbrew-da7854401d708862cb41338c49f00f0486654e23.tar.bz2
Automatically enable external `brew` commands.
* Add path to external command examples to PATH. * Only add them to PATH from inside Homebrew. Signed-off-by: Adam Vandenberg <flangy@gmail.com> * Move external commands path down near check
-rwxr-xr-xbin/brew3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/brew b/bin/brew
index cd498fa6e..736684aa5 100755
--- a/bin/brew
+++ b/bin/brew
@@ -349,6 +349,9 @@ begin
brew_doctor
else
+ # Add example external commands to PATH before checking.
+ ENV['PATH'] += ":#{HOMEBREW_REPOSITORY}/Library/Contributions/examples"
+
# Check for an external shell command
if system "/usr/bin/which -s brew-#{arg}"
# Add some Homebrew vars to the ENV