complete_aliases breaks completion
palb91 opened this issue · 1 comments
Hi!
I use zsh-z since a long time now, but it's just recently that I dig into a little bug: I wasn't able to have the completion for the command.
I added a dirty hack at the end of my zshrc: compdef _zshz t
(with ZSHZ_CMD=t
).
So I finally figured out (today) that the problem appears when COMPLETE_ALIASES
is set.
I also discovered today that the problem was already found with #1, I think it could be a good idea to either solve the problem… or easier to add it to the README.
Thanks for your great work ;)
Thanks so much for reporting in!
Yes, the behavior you describe is correct. setopt COMPLETE_ALIASES
always divorces an alias's completion from that of the command it invokes. z
or the contents of $ZSHZ_CMD
(or $_Z_CMD
) are aliases, so they're affected. Your "dirty hack," though, is completely legitimate; you're just establishing one exception to a general rule.
I agree that the documentation should explain that. I'll add to it tomorrow.
Thanks for helping to improve this plugin!