about summary refs log tree commit diff
path: root/Completion/Core/_parameters
blob: c7875abcf86a8a0561d747bb97553fbffd102d32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#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