From 792129d4571a573027a1222167f03e1b268990e5 Mon Sep 17 00:00:00 2001 From: Jeremy Worboys Date: Sat, 4 Oct 2014 12:49:56 +1000 Subject: [PATCH] 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. --- plugins/laravel4/laravel4.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/laravel4/laravel4.plugin.zsh b/plugins/laravel4/laravel4.plugin.zsh index 4b1022b66..fde728347 100644 --- a/plugins/laravel4/laravel4.plugin.zsh +++ b/plugins/laravel4/laravel4.plugin.zsh @@ -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 () {