I don't know if in OS X it's the same, but in Ubuntu you can write a script that generates completions for a certain command. So, for example, if you write `wp p` and press TAB, you will automatically get `wp plugin`.