1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-06 03:01:26 +02:00
zsh/Completion/Core/_parameters
1999-07-24 14:01:54 +00:00

12 lines
371 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. All
# arguments are given to compadd.
if zmodload -e parameter; then
setopt localoptions extendedglob
compadd "$@" - ${(k)parameters[(R)^*local*]}
else
compadd "$@" - ${${${(f)"$(typeset +)"}:#*local *}##* }
fi