From 3b97ef45e58ab19801ab12a226d5db7089f519e8 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 2 Apr 2001 11:15:46 +0000 Subject: moved from Completion/Commands/_expand_word --- Completion/Base/Widget/_expand_word | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Completion/Base/Widget/_expand_word (limited to 'Completion/Base') diff --git a/Completion/Base/Widget/_expand_word b/Completion/Base/Widget/_expand_word new file mode 100644 index 000000000..48ce87ede --- /dev/null +++ b/Completion/Base/Widget/_expand_word @@ -0,0 +1,15 @@ +#compdef -K _expand_word complete-word \C-xe _list_expansions list-choices \C-xd + +# Simple completion front-end implementing expansion. + +setopt localoptions ${_comp_options[@]} + +local curcontext="$curcontext" + +if [[ -z "$curcontext" ]]; then + curcontext="expand-word:::" +else + curcontext="expand-word:${curcontext#*:}" +fi + +_main_complete _expand -- cgit 1.4.1