You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ;)
The text was updated successfully, but these errors were encountered:
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.
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
(withZSHZ_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 ;)
The text was updated successfully, but these errors were encountered: