diff options
author | Henry Yan <yanhonglei@gmail.com> | 2012-10-14 22:06:48 +0800 |
---|---|---|
committer | Henry Yan <yanhonglei@gmail.com> | 2012-10-14 22:06:48 +0800 |
commit | 3ad138a08aa3de1246cffde0b7187ffcd017298c (patch) | |
tree | 4060de701525c143c8f73244b5d5a5ddd69273ba /plugins/laravel | |
parent | 3fe1e5c78760b81335eef501ef7f89875ae7753a (diff) | |
parent | c2ae9e09ca1f33ff1e13e629a0b2e6bdd19f83a9 (diff) | |
download | zsh-3ad138a08aa3de1246cffde0b7187ffcd017298c.tar.gz zsh-3ad138a08aa3de1246cffde0b7187ffcd017298c.tar.bz2 zsh-3ad138a08aa3de1246cffde0b7187ffcd017298c.zip |
Merge remote-tracking branch 'upstream/master'
* upstream/master: (35 commits)
make README reflect latest changes
URL Tools Plugin
added a comment to the composer installation alias
added Composer completition and aliases
added two aliases to Symfony2 Plugin
fix test aliases
Missing comment line
look for test/unit instead of test/units. #typo
Correct error message.
Clean up doc
Jira ticket shortcut to browse existing issues or create a new issue.
Add zeus plugin
Make rvm prompt function a bit cleaner
Fixing the rvm_prompt_info command, now it will not show empty parens if no rvm is currently being used
Add link to gist
Updated documentation for agnoster theme
Use HISTFILE evironment variable directly rather than copying it
added autojump plugin support for mac os x + port
Colemak plugin
Per directory history plugin
...
Diffstat (limited to 'plugins/laravel')
-rw-r--r-- | plugins/laravel/_artisan | 40 | ||||
-rw-r--r-- | plugins/laravel/laravel.plugin.zsh | 3 |
2 files changed, 43 insertions, 0 deletions
diff --git a/plugins/laravel/_artisan b/plugins/laravel/_artisan new file mode 100644 index 000000000..8637514cf --- /dev/null +++ b/plugins/laravel/_artisan @@ -0,0 +1,40 @@ +#compdef artisan + +# Laravel autocompletion +# Author: John Hamelink <john@johnhamelink.com> +# +# This plugin does the following: +# - Adds aliases and autocompletion for artisan +# - Adds aliases and autocompletion for bob + +local curcontext="$curcontext" state line _opts _bundles ret=1 +_arguments -C \ + '1: :->cmds' \ + '*:: :->args' && ret=0 + +case $state in + cmds) + + _values "Artisan command" \ + 'session\:install[Create a session table]' \ + 'migrate[Manage Migrations]' \ + 'test[Run a test]' \ + 'route\:\:call[Call a route in the CLI]' \ + 'key\:\:generate[Generate a key]' + ret=0 + ;; + args) + case $line[1] in + migrate) + _values \ + 'install[Create the Laravel migration table' \ + 'make[Create a migration]' \ + 'rollback[Roll back to the last migration operation]' \ + 'reset[Roll back all migrations that have ever run]' + ret=0 + ;; + esac + ;; +esac + +return ret diff --git a/plugins/laravel/laravel.plugin.zsh b/plugins/laravel/laravel.plugin.zsh new file mode 100644 index 000000000..ed932ee89 --- /dev/null +++ b/plugins/laravel/laravel.plugin.zsh @@ -0,0 +1,3 @@ +#!zsh +alias artisan='php artisan' +alias bob='php artisan bob::build' |