about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Completion/Base/Utility/_sub_commands9
1 files changed, 9 insertions, 0 deletions
diff --git a/Completion/Base/Utility/_sub_commands b/Completion/Base/Utility/_sub_commands
new file mode 100644
index 000000000..429931a16
--- /dev/null
+++ b/Completion/Base/Utility/_sub_commands
@@ -0,0 +1,9 @@
+#autoload
+
+local expl
+
+if [[ CURRENT -eq 2 ]]; then
+  _wanted commands expl command compadd "$@"
+else
+  _message 'no more arguments'
+fi