Is it possible to get zsh to autocomplete anaconda environments that show up under source activate
? It is annoying to always have to run conda info -e
to figure out what each environment's name is.
As indicated by asmeurer there is conda-zsh-completion.
Install it by cloning the repository to your machine
git clone https://github.com/esc/conda-zsh-completion
and add the following to your .zshrc
fpath+=/path/to/where/you/installed/conda-zsh-completion
compinit conda
Note that if you're using oh-my-zsh
the first line has to go before the line where you initiate oh-my-zsh
and the second one after the initialisation.
Now you're able to autocomplete conda like
conda a<TAB> env-name-parti<TAB>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With