symfony2.plugin.zsh 283 B

12345678910111213
  1. # Symfony2 basic command completion
  2. _symfony2_get_command_list () {
  3. app/console --no-ansi | sed "1,/Available commands/d" | awk '/^ [a-z]+/ { print $1 }'
  4. }
  5. _symfony2 () {
  6. if [ -f app/console ]; then
  7. compadd `_symfony2_get_command_list`
  8. fi
  9. }
  10. compdef _symfony2 app/console