diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb index 9574ba7d6f..d84bed2272 100644 --- a/Library/Homebrew/cmd/search.rb +++ b/Library/Homebrew/cmd/search.rb @@ -143,7 +143,8 @@ module Homebrew end end - paths = tree["Formula"] || tree["HomebrewFormula"] || tree["Casks"] || tree["."] || [] + paths = tree["Formula"] || tree["HomebrewFormula"] || tree["."] || [] + paths += tree["Casks"] || [] cache[key] = paths.map { |path| File.basename(path, ".rb") } end