my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
434 B

3 years ago
  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