Skip to content
Snippets Groups Projects
Commit 135efb39 authored by Xu Cheng's avatar Xu Cheng
Browse files

search: highlight installed formulae

parent 79018e4e
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,8 @@ module Homebrew
query = ARGV.first
rx = query_regexp(query)
local_results = search_formulae(rx)
puts_columns(local_results)
local_results_installed = local_results.select { |f| f.end_with? "(installed)" }
puts_columns(local_results, local_results_installed)
if !query.empty? && $stdout.tty? && msg = blacklisted?(query)
unless local_results.empty?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment