* 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 ... ```
3 lines
79 B
Text
3 lines
79 B
Text
#compdef rspec
|
|
|
|
compadd -P spec/ `ls spec/**/*_spec.rb | sed -E "s/spec\///g"`
|