From [Conda's documentation][1],
After activating an environment using its prefix, your prompt will look similar to the following:
(/absolute/path/to/envs) $
This can result in long prefixes:
(/Users/USER_NAME/research/data-science/PROJECT_NAME/envs) $
To remove this long prefix in your shell prompt, modify the env_prompt setting in your .condarc file:
$ conda config --set env_prompt '({name})'
This will edit your .condarc file if you already have one or create a .condarc file if you do not.
Now your command prompt will display the active environment’s generic name, which is the name of the environment's root folder:
$ cd project-directory
$ conda activate ./env
(env) project-directory $
[1]: https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#activating-an-environment
From [Conda's documentation][1],
After activating an environment using its prefix, your prompt will look similar to the following:
(/absolute/path/to/envs) $
This can result in long prefixes:
(/Users/USER_NAME/research/data-science/PROJECT_NAME/envs) $
To remove this long prefix in your shell prompt, modify the env_prompt setting in your .condarc file:
$ conda config --set env_prompt '({name})'
This will edit your .condarc file if you already have one or create a .condarc file if you do not.
Now your command prompt will display the active environment’s generic name, which is the name of the environment's root folder:
$ cd project-directory
$ conda activate ./env
(env) project-directory $
[1]: https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#activating-an-environment