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
Temporary solution for those of you who encountered this problem.
You can use the following snippet to evaluate multiple completion scripts correctly in .zshrc:
eval "$(binary1 --completion-script-zsh | sed '/^#/d; /^autoload/d')"
eval "$(binary2 --completion-script-zsh | sed '/^#/d; /^autoload/d')"
When you try to eval two different completion scripts for two different binaries only the last one is working correctly.
e.g.
Evalutuating the folowing code will result in completion working properly only for the binary2
The issue seems to be caused by running
compinit
again, which resets completion module and removes previously added autocompletion scripts.I propose to remove calls to
compinit
andbashcompinit
and leave this responsibility to the user.The text was updated successfully, but these errors were encountered: