There are certain environment variables that are often set within a
conda environment. It is actually pretty easy to automate the procedure of setting/unsetting those variables when activating/deactivating corresponding environments, though the documentation is scattered. Here is a quick summary.
conda (either Anaconda or Miniconda applies) is installed at
$CONDA_PREFIX .There are two directories within which the scripts are sourced when activating/deactivating an environment:
$ENV_PREFIX is normally
(Those two directories may not be present by default). Simply create a script, say
env_vars.sh under each of the directories and do manipulation of environment variables therein.