diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-02-26 15:05:37 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-02-26 15:05:37 +0000 |
commit | 183f6b06d09fa3ed143a098f2fc5f7b6c17af7ef (patch) | |
tree | 5cc0321cfadd91445aaa40fe9709ee15ae127697 /Completion/Base | |
parent | 006e9b9afba10e2e64d86538fe5777376c8f0f57 (diff) | |
download | zsh-183f6b06d09fa3ed143a098f2fc5f7b6c17af7ef.tar.gz zsh-183f6b06d09fa3ed143a098f2fc5f7b6c17af7ef.tar.xz zsh-183f6b06d09fa3ed143a098f2fc5f7b6c17af7ef.zip |
some small functions for completing sub-commands (generic function, init scripts, apachectl) (13536)
Diffstat (limited to 'Completion/Base')
-rwxr-xr-x | Completion/Base/_sub_commands | 9 |
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 |