Below is an example bash configuration that allows conda (and other similar tools) to operate in all types of bash shell, including non-interactively.
conda