Fix completion for Laravel 5 (previously 4.3)

Laravel changed the output out when listing commands.

This change makes the `laravel4` plugin compatible with both Laravel 4 and Laravel 5.
This commit is contained in:
Jeremy Worboys 2014-10-04 12:49:56 +10:00
commit 792129d457

View file

@ -1,6 +1,6 @@
# Laravel4 basic command completion
_laravel4_get_command_list () {
php artisan --no-ansi | sed "1,/Available commands/d" | awk '/^ [a-z]+/ { print $1 }'
php artisan --no-ansi | sed "1,/Available commands/d" | awk '/^ ?[a-z]+/ { print $1 }'
}
_laravel4 () {