blob: a579e5eadf83173ebc9c8838141c2da7dec9d957 (
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. 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
|