Anaconda tab complete

Has anyone manged to set up tab complete with anaconda so that you could for example do conda activate fastai_de<tab> for it to complete like it would if you were navigating files in a directory?

I’ve tried to follow the guide presented here but with no luck.

A useful solution I’ve found is to create environments based on the folder I am working on:

I’ve added thes commands to my ~/.bash_aliases file:

alias condac='conda create -n $(basename $PWD)'
alias condaa='conda activate $(basename $PWD)'

These two commands will create and activate a conda enviroment based on the folder name that I am currently in.

Saves some typing I guess. Can add python=3.7 to the end of the condac command to specify version