mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
Add laravel homestead autocomplete plugin.
This commit is contained in:
parent
e55c715508
commit
f2cfd0650a
1 changed files with 16 additions and 0 deletions
16
plugins/laravel-homestead/laravel-homestead.plugin.zsh
Normal file
16
plugins/laravel-homestead/laravel-homestead.plugin.zsh
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
###########################################
|
||||
# Laravel homestead command completion #
|
||||
# Author: Casper Lai #
|
||||
# Email: casper.lai@outlook.com #
|
||||
# Reference: Laravel5 plugin #
|
||||
###########################################
|
||||
|
||||
_laravel_homestead_get_command_list () {
|
||||
homestead --no-ansi | sed "1,/Available commands/d" | awk '/^ +[a-z]+/ { print $1 }'
|
||||
}
|
||||
|
||||
_laravel_homestead () {
|
||||
compadd `_laravel_homestead_get_command_list`
|
||||
}
|
||||
|
||||
compdef _laravel_homestead homestead
|
||||
Loading…
Add table
Add a link
Reference in a new issue