diff options
| author | Xu Cheng | 2015-05-08 19:54:29 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-05-27 13:53:40 +0800 |
| commit | e2b0bca93117179c359e0ecc2653e061f4ea305c (patch) | |
| tree | bb695127203ce3cf395890bd2148d8559c34bab4 /Library/Homebrew/cmd/search.rb | |
| parent | 811c4c5add5048e2e67814045e6d5fbb7820ddcb (diff) | |
| download | brew-e2b0bca93117179c359e0ecc2653e061f4ea305c.tar.bz2 | |
add Formula.core_names Formula.tap_names and Formula.full_names
Diffstat (limited to 'Library/Homebrew/cmd/search.rb')
| -rw-r--r-- | Library/Homebrew/cmd/search.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb index 5ac9db391..436726274 100644 --- a/Library/Homebrew/cmd/search.rb +++ b/Library/Homebrew/cmd/search.rb @@ -28,7 +28,7 @@ module Homebrew end end elsif ARGV.empty? - puts_columns Formula.names + puts_columns Formula.full_names elsif ARGV.first =~ HOMEBREW_TAP_FORMULA_REGEX query = ARGV.first user, repo, name = query.split("/", 3) @@ -152,7 +152,7 @@ module Homebrew def search_formulae rx aliases = Formula.aliases - results = (Formula.names+aliases).grep(rx).sort + results = (Formula.full_names+aliases).grep(rx).sort # Filter out aliases when the full name was also found results.reject do |name| |
