aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-10-15 16:55:27 +0800
committerXu Cheng2015-10-15 17:24:41 +0800
commit135efb39b8f6a35071ab3b701a789b668bfc2596 (patch)
treeff11b5bd7ceefaf59274f70ffc81fff0f2f849c7 /Library
parent79018e4e242dbad09adce4c60e2f4f061df0a402 (diff)
downloadbrew-135efb39b8f6a35071ab3b701a789b668bfc2596.tar.bz2
search: highlight installed formulae
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/search.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb
index 21e3c6dfa..2c2f95567 100644
--- a/Library/Homebrew/cmd/search.rb
+++ b/Library/Homebrew/cmd/search.rb
@@ -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?