As of conda 4.2, environment-specific .condarc
files are supported and you can write:
conda config --env --add channels glotzer
to add the channel to the configuration for the active environment.
[Not sure whether --env
flag was added in 4.2. Answer based on conda 4.5.9]