diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:19:56 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:19:56 +0000 |
commit | 9dff5d2d9bda56c793aedacd4f0090c08e4d1d53 (patch) | |
tree | dff888a51ff00ddec892316a35faccb16054ce11 /Completion/Core/_parameters | |
parent | 24415b2cc98c159a0113ce01cf8d85059b210d99 (diff) | |
download | zsh-9dff5d2d9bda56c793aedacd4f0090c08e4d1d53.tar.gz zsh-9dff5d2d9bda56c793aedacd4f0090c08e4d1d53.tar.xz zsh-9dff5d2d9bda56c793aedacd4f0090c08e4d1d53.zip |
moved to Completion/Zsh/Type/_parameters
Diffstat (limited to 'Completion/Core/_parameters')
-rw-r--r-- | Completion/Core/_parameters | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/Completion/Core/_parameters b/Completion/Core/_parameters deleted file mode 100644 index 097a96760..000000000 --- a/Completion/Core/_parameters +++ /dev/null @@ -1,30 +0,0 @@ -#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. - -# If you specify a -g option with a pattern, the pattern will be used to -# restrict the type of parameters matched. - -local expl pattern fakes faked tmp - -pattern=(-g \*) -zparseopts -D -K -E g:=pattern - -fakes=() -faked=() -if zstyle -a ":completion:${curcontext}:" fake-parameters tmp; then - for i in "$tmp[@]"; do - if [[ "$i" = *:* ]]; then - faked=( "$faked[@]" "$i" ) - else - fakes=( "$fakes[@]" "$i" ) - fi - done -fi - -_wanted parameters expl parameter \ - compadd "$@" -Q - \ - "${(@k)parameters[(R)${pattern[2]}~*local*]}" \ - "$fakes[@]" \ - "${(@)${(@M)faked:#${~pattern[2]}}%%:*}" |