blob: 824d8dbc94b35e118335c3c65cc608d83cc80e9d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#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.
local expl
_description expl parameter
if zmodload -e parameter; then
setopt localoptions extendedglob
compadd "$expl[@]" "$@" - ${(k)parameters[(R)^*local*]}
else
compadd "$expl[@]" "$@" - ${${${(f)"$(typeset +)"}:#*local *}##* }
fi
|