0

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

merv
  • 53,208
  • 11
  • 148
  • 196

1 Answers1

1

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.


The comment by @merv provides a more efficient answer, and the result is the same. See the documentation on changeps1.

conda config --set changeps1 false
jakub
  • 13,953
  • 2
  • 30
  • 52