mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-07-06 03:01:26 +02:00
12 lines
371 B
Text
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
|