From d73b335c77bce9409bb18f0f6241f0939252fbf3 Mon Sep 17 00:00:00 2001 From: nandahkrishna Date: Tue, 16 Mar 2021 10:52:18 +0530 Subject: [PATCH] completions: handle installed/outdated formulae and casks --- Library/Homebrew/completions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/completions.rb b/Library/Homebrew/completions.rb index 161f4cf5ea..43033ed4f8 100644 --- a/Library/Homebrew/completions.rb +++ b/Library/Homebrew/completions.rb @@ -223,7 +223,7 @@ module Homebrew next unless ZSH_NAMED_ARGS_COMPLETION_FUNCTION_MAPPING.key? type args_options << "- #{type}" - opt = "--#{type}" + opt = "--#{type.to_s.gsub(/(installed|outdated)_/, "")}" if options.key?(opt) desc = options[opt]