mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Merge ab314e13be into 9cb14dc886
This commit is contained in:
commit
52dfd34219
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