diff options
| author | Mike McQuaid | 2014-09-24 15:14:16 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2014-09-24 15:14:16 -0700 |
| commit | bd8559c791e7bc37c17a0f270e9b0f98e89d7a8a (patch) | |
| tree | 7297e0602dde8047f705aa1cb6ad8652b3f55201 /Library/brew.rb | |
| parent | 05739585d101ed6a44ed505cf7d6cbe0a7ff524f (diff) | |
| download | brew-bd8559c791e7bc37c17a0f270e9b0f98e89d7a8a.tar.bz2 | |
brew: add contributed tap commands to PATH.
This means that taps root and `cmd` directories are added to the PATH.
This should enable migration of some of our contributed commands into
taps (e.g. `homebrew-boneyard`) and make it easy for third parties to
be able to maintain these. It might also make stuff easier for existing
tools like e.g. `brew-cask` and `boxen`.
Closes Homebrew/homebrew#32471.
Diffstat (limited to 'Library/brew.rb')
| -rwxr-xr-x | Library/brew.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/brew.rb b/Library/brew.rb index 1237e54b6..cd2be0774 100755 --- a/Library/brew.rb +++ b/Library/brew.rb @@ -109,6 +109,9 @@ begin # Add contributed commands to PATH before checking. ENV['PATH'] += "#{File::PATH_SEPARATOR}#{HOMEBREW_CONTRIB}/cmd" + Dir["#{HOMEBREW_LIBRARY}/Taps/*/*/cmd"].each do |tap_cmd_dir| + ENV["PATH"] += "#{File::PATH_SEPARATOR}#{tap_cmd_dir}" + end internal_cmd = require? HOMEBREW_LIBRARY_PATH.join("cmd", cmd) if cmd |
