about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Completion/Base/Widget/_generic11
1 files changed, 11 insertions, 0 deletions
diff --git a/Completion/Base/Widget/_generic b/Completion/Base/Widget/_generic
new file mode 100644
index 000000000..9a6b4401f
--- /dev/null
+++ b/Completion/Base/Widget/_generic
@@ -0,0 +1,11 @@
+#autoload
+
+local curcontext="$curcontext"
+
+if [[ -z "$curcontext" ]]; then
+  curcontext="${WIDGET}:::"
+else
+  curcontext="${WIDGET}:${curcontext#*:}"
+fi
+
+_main_complete