laravel5.plugin.zsh 434 B

12345678910111213141516171819
  1. # Alias
  2. alias la5='php artisan'
  3. alias la5cache='php artisan cache:clear'
  4. alias la5routes='php artisan route:list'
  5. alias la5vendor='php artisan vendor:publish'
  6. # Laravel5 basic command completion
  7. _laravel5_get_command_list () {
  8. php artisan --raw --no-ansi list | sed "s/[[:space:]].*//g"
  9. }
  10. _laravel5 () {
  11. if [[ -f artisan ]]; then
  12. compadd $(_laravel5_get_command_list)
  13. fi
  14. }
  15. compdef _laravel5 artisan
  16. compdef _laravel5 la5