about summary refs log tree commit diff
path: root/Completion/Base/_sub_commands
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Base/_sub_commands')
-rwxr-xr-xCompletion/Base/_sub_commands9
1 files changed, 9 insertions, 0 deletions
diff --git a/Completion/Base/_sub_commands b/Completion/Base/_sub_commands
new file mode 100755
index 000000000..429931a16
--- /dev/null
+++ b/Completion/Base/_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