From 932f096df9b9ba69811b836124b6accb72bd3cbe Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 2 Apr 2001 11:03:18 +0000 Subject: moved from Completion/Core/_main_complete --- Completion/Base/Core/_main_complete | 330 ++++++++++++++++++++++++++++++++++++ 1 file changed, 330 insertions(+) create mode 100644 Completion/Base/Core/_main_complete (limited to 'Completion/Base/Core') diff --git a/Completion/Base/Core/_main_complete b/Completion/Base/Core/_main_complete new file mode 100644 index 000000000..f38354815 --- /dev/null +++ b/Completion/Base/Core/_main_complete @@ -0,0 +1,330 @@ +#autoload + +# The main loop of the completion code. This is what is called when +# completion is attempted from the command line. + + +# If you want to complete only set or unset options for the unsetopt +# and setopt builtin, un-comment these lines: +# +# local _options_set _options_unset +# +# _options_set=(${(k)options[(R)on]}) +# _options_unset=(${(k)options[(R)off]}) +# +# This is needed because completion functions may set options locally +# which makes the output of setopt and unsetopt reflect a different +# state than the global one for which you are completing. + +setopt localoptions ${_comp_options[@]} + +exec