mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-30 05:40:58 +01:00
15 lines
436 B
Text
15 lines
436 B
Text
#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.
|
|
|
|
# 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 "$@" \
|
|
-Q -k "parameters[(R)${pattern[2]}~*local*]"
|