mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-10 12:40:58 +02:00
12 lines
290 B
Text
12 lines
290 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.
|
|
|
|
local pars expl
|
|
|
|
_wanted parameters expl parameter || return 1
|
|
|
|
pars=( ${(k)parameters[(R)^*local*]} )
|
|
|
|
compadd "$expl[@]" "$@" - $pars
|