1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-20 05:53:52 +01:00
zsh/Completion/Core/_parameters

16 lines
434 B
Plaintext
Raw Normal View History

1999-04-15 20:05:38 +02:00
#autoload
# This should be used to complete parameter names if you need some of the
# extra options of compadd. It completes only non-local parameters.
1999-04-15 20:05:38 +02:00
# If you specify a -g option with a pattern, the pattern will be used to
# restrict the type of parameters matched.
local expl pattern
pattern=(-g \*)
zparseopts -D -K -E g:=pattern
_wanted parameters expl parameter compadd "$@" \
-k "parameters[(R)${pattern[2]}~*local*]"