From bde4cfde51526bb8910c1dfbce8b6e4c4e1f5149 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 13 Jun 2000 11:55:06 +0000 Subject: new _generic widget to call completion with $WIDGET in function field of context (?) --- Completion/Commands/_generic | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Completion/Commands/_generic (limited to 'Completion') diff --git a/Completion/Commands/_generic b/Completion/Commands/_generic new file mode 100644 index 000000000..9a6b4401f --- /dev/null +++ b/Completion/Commands/_generic @@ -0,0 +1,11 @@ +#autoload + +local curcontext="$curcontext" + +if [[ -z "$curcontext" ]]; then + curcontext="${WIDGET}:::" +else + curcontext="${WIDGET}:${curcontext#*:}" +fi + +_main_complete -- cgit 1.4.1