chezmoi init
This commit is contained in:
commit
530d6d7195
1176 changed files with 111325 additions and 0 deletions
18
dot_oh-my-zsh/plugins/laravel4/README.md
Normal file
18
dot_oh-my-zsh/plugins/laravel4/README.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Laravel 4 plugin
|
||||
|
||||
This plugin adds some aliases for common [Laravel 4](https://laravel.com/docs/4.2) commands.
|
||||
|
||||
To use it, add `laravel4` to the plugins array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... laravel4)
|
||||
```
|
||||
|
||||
## Aliases
|
||||
|
||||
| Alias | Command | Description |
|
||||
|-----------|-----------------------------|-------------------------------------|
|
||||
| la4 | `php artisan` | Main Artisan command |
|
||||
| la4dump | `php artisan dump-autoload` | Regenerate framework autoload files |
|
||||
| la4cache | `php artisan cache:clear` | Flush the application cache |
|
||||
| la4routes | `php artisan routes` | List all registered routes |
|
20
dot_oh-my-zsh/plugins/laravel4/laravel4.plugin.zsh
Normal file
20
dot_oh-my-zsh/plugins/laravel4/laravel4.plugin.zsh
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Laravel4 basic command completion
|
||||
_laravel4_get_command_list () {
|
||||
php artisan --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
|
||||
compdef _laravel4 la4
|
||||
|
||||
#Alias
|
||||
alias la4='php artisan'
|
||||
|
||||
alias la4dump='php artisan dump-autoload'
|
||||
alias la4cache='php artisan cache:clear'
|
||||
alias la4routes='php artisan routes'
|
Loading…
Add table
Add a link
Reference in a new issue