diff options
author | Dimitri Jorge <jorge.dimitri@gmail.com> | 2013-09-01 18:20:08 +0200 |
---|---|---|
committer | Dimitri Jorge <jorge.dimitri@gmail.com> | 2013-09-01 18:20:08 +0200 |
commit | dd220152be26163c93ed1c0f9f98e7bad0653941 (patch) | |
tree | 34773f98528a301b465ad7479f2046aac7fe55b6 | |
parent | 434f3bc05c5245d7a27ab0bb1ede5b78acc370a4 (diff) | |
download | zsh-dd220152be26163c93ed1c0f9f98e7bad0653941.tar.gz zsh-dd220152be26163c93ed1c0f9f98e7bad0653941.tar.bz2 zsh-dd220152be26163c93ed1c0f9f98e7bad0653941.zip |
Add autocompletion plugin for meteor command
-rw-r--r-- | plugins/meteor/_meteor | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/plugins/meteor/_meteor b/plugins/meteor/_meteor new file mode 100644 index 000000000..c90ed6caf --- /dev/null +++ b/plugins/meteor/_meteor @@ -0,0 +1,32 @@ +#compdef meteor +#autoload + +# Meteor Autocomplete plugin for Oh-My-Zsh, based on homebrew completion +# Original author: Dimitri JORGE (https://github.com/jorge-d) + +local -a _1st_arguments +_1st_arguments=( + 'run:[Default] Run this project in local development mode' + 'create:Create a new project' + 'update:Upgrade this project to the latest version of Meteor' + 'add:Add a package to this project' + 'remove:Remove a package from this project' + 'list:List available packages' + 'help:Display Meteor help' + 'bundle:Pack this project up into a tarball' + 'mongo:Connect to the Mongo database for the specified site' + 'deploy:Deploy this project to Meteor' + 'logs:Show logs for specified site' + 'reset:Reset the project state. Erases the local database.' + 'test-packages:Test one or more packages' +) + +if (( CURRENT == 2 )); then + _describe -t commands "meteor subcommand" _1st_arguments + return +fi + +case "$words[2]" in + help) + _describe -t commands "brew subcommand" _1st_arguments +esac
\ No newline at end of file |