conda / ceps

Conda Enhancement Proposals
Creative Commons Zero v1.0 Universal
19 stars 24 forks source link

CEP idea: env name metadata #67

Open jaimergp opened 3 months ago

jaimergp commented 3 months ago

conda takes the directory name as the name of the environment too. This is used for CLI (conda activate xyz) and UX (the (xyz) prompt in the shell). This proposal would add a magic file under conda-meta/ that proposes a name different that the environment directory.

Why is this needed or useful?

The idea would be very simple. If a conda-meta/env-name is present, parse the file contents and use that as the name.

chenghlee commented 3 months ago

Another useful outcome: changing your conda envs_dirs configuration setting doesn't suddenly cause existing environment prefixes go from named -> unnamed (or vice versa).