about summary refs log tree commit diff
path: root/Functions/Completion/__command
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Completion/__command')
-rw-r--r--Functions/Completion/__command7
1 files changed, 7 insertions, 0 deletions
diff --git a/Functions/Completion/__command b/Functions/Completion/__command
new file mode 100644
index 000000000..deaabdb1f
--- /dev/null
+++ b/Functions/Completion/__command
@@ -0,0 +1,7 @@
+#function command
+
+if [[ -position 2 -1 ]]; then
+  compsub
+else
+  complist -em
+fi