New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some plugins don't work well without setopt completealiases #4407
Comments
I can reproduce on OS X 10.9, and expect it will be the same on all platforms: this is normal behavior for Yeah, this is from #2790 and the commit 5b75cc7 you identified. The current implementation assumes To fix it to work with Many other plugins and core aliases will also be affected by |
As an aside, why do you have |
Yep, just read c3a58b0 too. Pretty much the reason for Some examples with rake and debian plugins:
Enter some ruby/rails project.
No completion.
No completion, while
works as intended.
the rake plugin
completes correctly, and the debian plugin too:
|
Yeah, I think you're right that it's about standardization of how plugins do completion. In my opinion, if a plugin requires You're right, we should standardize all the plugins to work with one setting or the other. But I think the correct one is "off": going with On the flip side, if you have a case where you have an alias and you do want a distinct completion behavior for it (as opposed to the completion that would happen for the expanded alias), you can easily fix that on a per-command basis by converting the alias to a function. The I don't use rails, so I don't know why the Let's fix the plugins to work under |
When you mentioned the rake command you must have been referring to the rails plugin, which is already protected against As per the debian plugin, there is already issue #3686 open, so I'm closing this issue unless there are other plugins that should be fixed as well. |
Reproduction steps
git checkout <tab>
gco <tab>
setopt completealiases
git checkout <tab>
gco <tab>
Test environment data
Ubuntu 15.04 x64
zsh 5.0.7 (x86_64-pc-linux-gnu)
oh-my-zsh (76a26a2)
Cygwin
zsh 5.0.8 (x86_64-unknown-cygwin)
oh-my-zsh (76a26a2)
Further information
5b75cc7 seems to be the commit having made the regression.
Alias completion of git commands works with or without setopt completealiases in commits past that one.
Solution
Make sure the git plugin fully works even when completealiases is set.
Or even better, that aliases completion like
gco<tab>
works only when completealiases is set...The text was updated successfully, but these errors were encountered: