The debian rake package includes a bashcompletion file for rake, which is pretty useful considering the number of rake tasks that e.g. rails provides. It would be cool if that were installed with the dev-ruby/rake ebuild, too. Reproducible: Always Steps to Reproduce: 1. rails . 2. rake <TAB><TAB> Actual Results: List of files. Expected Results: List of rake tasks.
Thanks for the report. I've just added this to the tree as dev-ruby/rake-0.8.7-r1.
It doesn't seem to be working. complete | grep rake doesn't return anything. That's probably due to this test: [ -n "${have:-}" ]. I have no idea what that is supposed to do, may this be something Debian specific?
(In reply to comment #2) > It doesn't seem to be working. complete | grep rake doesn't return anything. > That's probably due to this test: [ -n "${have:-}" ]. I have no idea what that > is supposed to do, may this be something Debian specific? "complete -o filenames -F _rake rake" Did you turn on the completion using "eselect bashcomp"?
(In reply to comment #3) > Did you turn on the completion using "eselect bashcomp"? > I did.
(In reply to comment #4) > (In reply to comment #3) > > Did you turn on the completion using "eselect bashcomp"? > > > I did. So rake does show up with a * behind it when doing 'eselect bashcomp list', but it does not show up when typing 'complete'? CC'ing the bash-completion folks as they might have more insight.
(In reply to comment #5) > So rake does show up with a * behind it when doing 'eselect bashcomp list', but > it does not show up when typing 'complete'? That's right: gidoca@localhost ~ $ eselect bashcomp list | grep rake [108] rake * gidoca@localhost ~ $ complete | grep rake gidoca@localhost ~ $ This is true for both my amd64 desktop and my x86 laptop. Besides, replacing the line "[ -n "${have:-}" ] && complete -F _rake $filenames rake" by "complete -F _rake $filenames rake" in /usr/share/bash-completion/rake makes it work.
I see what you mean now. I've changed this in rake-0.8.7-r3 to follow the same pattern as the other bash-completion files, so hopefully that fixes it for you. Please reopen if that is not the case.