completions: handle installed/outdated formulae and casks
This commit is contained in:
parent
fdf7c3136b
commit
d73b335c77
@ -223,7 +223,7 @@ module Homebrew
|
|||||||
next unless ZSH_NAMED_ARGS_COMPLETION_FUNCTION_MAPPING.key? type
|
next unless ZSH_NAMED_ARGS_COMPLETION_FUNCTION_MAPPING.key? type
|
||||||
|
|
||||||
args_options << "- #{type}"
|
args_options << "- #{type}"
|
||||||
opt = "--#{type}"
|
opt = "--#{type.to_s.gsub(/(installed|outdated)_/, "")}"
|
||||||
if options.key?(opt)
|
if options.key?(opt)
|
||||||
desc = options[opt]
|
desc = options[opt]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user