yii.plugin.zsh 284 B

1234567891011121314151617
  1. # Yii basic command completion
  2. _yii_get_command_list () {
  3. protected/yiic | awk '/^ - [a-z]+/ { print $2 }'
  4. }
  5. _yii () {
  6. if [ -f protected/yiic ]; then
  7. compadd `_yii_get_command_list`
  8. fi
  9. }
  10. compdef _yii protected/yiic
  11. compdef _yii yiic
  12. # Aliases
  13. alias yiic='protected/yiic'