1

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
  • 67,214
  • 13
  • 180
  • 245

1 Answers1

3

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
jkr
  • 17,119
  • 2
  • 42
  • 68
  • 1
    wouldn't setting `changeps1` to false be more efficient? i.e., so it doesn't execute the PS1 change in the first place – merv Mar 16 '21 at 22:10
  • @merv - yes i agree. thanks. i updated my answer. – jkr Mar 17 '21 at 14:17