mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
add laravel4 autocompletion plugin
This commit is contained in:
parent
357ab4912b
commit
ab314e13be
1 changed files with 17 additions and 0 deletions
17
plugins/laravel4/laravel4.plugin.zsh
Normal file
17
plugins/laravel4/laravel4.plugin.zsh
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
# Laravel4 basic command completion
|
||||||
|
|
||||||
|
_laravel4_get_command_list () {
|
||||||
|
php artisan list --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
|
||||||
|
|
||||||
|
#Alias
|
||||||
|
alias artisan='php artisan'
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue