diff options
author | Evgeny Golubev <evgeny@golubev.eu> | 2014-01-17 12:59:14 +0300 |
---|---|---|
committer | Evgeny Golubev <evgeny@golubev.eu> | 2014-01-17 12:59:14 +0300 |
commit | 7b9e48992fa82a72587e451018926e2607172e95 (patch) | |
tree | 1c6de52362b23859f917b4aa985e05407cbd790a /plugins | |
parent | d485044169c2ac18e9e8e7fe29f7d4d93864168a (diff) | |
download | zsh-7b9e48992fa82a72587e451018926e2607172e95.tar.gz zsh-7b9e48992fa82a72587e451018926e2607172e95.tar.bz2 zsh-7b9e48992fa82a72587e451018926e2607172e95.zip |
Add Laravel4 plugin
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/laravel4/laravel4.plugin.zsh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/laravel4/laravel4.plugin.zsh b/plugins/laravel4/laravel4.plugin.zsh new file mode 100644 index 000000000..4b1022b66 --- /dev/null +++ b/plugins/laravel4/laravel4.plugin.zsh @@ -0,0 +1,20 @@ +# Laravel4 basic command completion +_laravel4_get_command_list () { + php artisan --no-ansi | sed "1,/Available commands/d" | awk '/^ [a-z]+/ { print $1 }' +} + +_laravel4 () { + if [ -f artisan ]; then + compadd `_laravel4_get_command_list` + fi +} + +compdef _laravel4 artisan +compdef _laravel4 la4 + +#Alias +alias la4='php artisan' + +alias la4dump='php artisan dump-autoload' +alias la4cache='php artisan cache:clear' +alias la4routes='php artisan routes' |