about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Commands/_generic11
1 files changed, 11 insertions, 0 deletions
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