forked from ohmyzsh/ohmyzsh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the Laravel 4 artisan completion plugin
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Laravel 4: Artisan basic command completion | ||
|
||
_laravel4_get_command_list () { | ||
php artisan | sed "1,/Available commands/d" | awk '/^ [a-z]+/ { print $1 }' | ||
} | ||
|
||
_laravel4 () { | ||
if [ -f artisan ]; then | ||
compadd `_laravel4_get_command_list` | ||
fi | ||
} | ||
|
||
compdef _laravel4 php artisan | ||
compdef _laravel4 artisan | ||
|
||
#Alias | ||
alias artisan='php artisan' | ||
alias artisan2cl='php artisan cache:clear' | ||
alias artisan2routes='php artisan routes' |
62bee9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plugin for Command Completion in Laravel 4 (artisan console). Example:
62bee9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍