From da7854401d708862cb41338c49f00f0486654e23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20K=C3=BChl?= Date: Fri, 2 Jul 2010 19:51:26 +0200 Subject: [PATCH] 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 * Move external commands path down near check --- bin/brew | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/brew b/bin/brew index cd498fa6e2..736684aa58 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