Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I want to remove conda's env name [duplicate]

I use oh-my-zsh with spaceship theme

Here, I want to remove conda environment's name which is (base)

img

In the image there's a (base) and also base. I'd like to delete first one.

please help

like image 401
사psycoder코 Avatar asked Sep 19 '25 10:09

사psycoder코


1 Answers

The comment by @merv provides an efficient answer. See the documentation on changeps1.

conda config --set changeps1 false

Original answer, which is inferior to the answer above.

If you want to remove the (base) prefix but keep the base environment activated, you can set the env_prompt configuration key:

conda config --set env_prompt ""

The default value for env_prompt is '({default_env}) '. See the conda configuration documentation.

like image 83
jakub Avatar answered Sep 23 '25 12:09

jakub