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
I spend a bit of time investigating why micromamba completion would not work with my ZSH config, or would work depending where micromamba shell hook was called.
ZSH completion system is quite complex, but I found a similar issue on nvm-sh/nvm#2489 as well as this SO question.
There it is argued that compinit should be called only once, and preferably by the user in their zshrc (to make sure it is only called once).
The later would change the behaviour of micromamba which does not assume that the user need to edit their zshrc files, and so similarily the nvm folks decided to only conditionally call compinit in nvm-sh/nvm#2490.
I tested locally that this works for micromamba and so I propose we adopt a similar approach, namely, replacing
For future reference, ZSH completion system is also richer than what we are doing (bashcompinit), it is for instance possible to add description for the keywords being completed.
I spend a bit of time investigating why
micromamba
completion would not work with my ZSH config, or would work depending wheremicromamba shell hook
was called.ZSH completion system is quite complex, but I found a similar issue on nvm-sh/nvm#2489 as well as this SO question.
There it is argued that
compinit
should be called only once, and preferably by the user in theirzshrc
(to make sure it is only called once).The later would change the behaviour of
micromamba
which does not assume that the user need to edit theirzshrc
files, and so similarily thenvm
folks decided to only conditionally callcompinit
in nvm-sh/nvm#2490.I tested locally that this works for
micromamba
and so I propose we adopt a similar approach, namely, replacingwith
The text was updated successfully, but these errors were encountered: