Attached updated open completion patch On Sat, Aug 26, 2023 at 1:08 AM Jun. T wrote: > > > 2023/08/23 13:00, Shohei YOSHIDA wrote: > > > + '*--env[add the environment variable of the launched > application]:env value' \ > > You can complete parameter names by using _parameters > (although it may not be so useful here). > > To complete only exported parameters: > _parameters -g "*export*" > See the description of _parameters in 'man zshcompsys'. > > # -g "*export*" may be too restrictive, but I feel it is enough. > > The manpage (for _parameters) also says: > 'All other arguments are passed to the compadd builtin.' > So you can pass the options -qS= to compadd by: > > '*--env[add variable to the environment of the launched > application]:environment variable:_parameters -g "*export*" -qS=' > > # -qS= is to add a '=' after the parameter name, but remove > # the '=' if user types a space. > > > Could you please post the revised versions of _system_profiler, > _sw_vers, _otool and _open? > -- Shohei YOSHIDA(syohex@gmail.com)