scatterd-dotfiles/zsh/completion/_rspec
Greg Lazarev 59bdc8d237 Don't use suffix flag for zsh compadd command
* Fixes an issue where tab completing specs that start with the same
words(s) makes tab completion freak out and stop working.

* The con is that we'll see "_spec.rb" in the output, like:

```zsh
$ rspec spec/models/
models/calendar_spec.rb
models/event_closer_spec.rb
...
```
2013-04-19 12:12:42 -07:00

3 lines
79 B
Text

#compdef rspec
compadd -P spec/ `ls spec/**/*_spec.rb | sed -E "s/spec\///g"`