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.
This commit is contained in:
parent
05739585d1
commit
bd8559c791
@ -109,6 +109,9 @@ begin
|
|||||||
|
|
||||||
# Add contributed commands to PATH before checking.
|
# Add contributed commands to PATH before checking.
|
||||||
ENV['PATH'] += "#{File::PATH_SEPARATOR}#{HOMEBREW_CONTRIB}/cmd"
|
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
|
internal_cmd = require? HOMEBREW_LIBRARY_PATH.join("cmd", cmd) if cmd
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user