MacOS – How to get rid of (base) inside terminal app in 10.14.6

bashcommand linemacosterminal

when I get a fresh terminal, my prompt says

(base) ~> 

The (base) part is something that seems new.
Was this added during a recent update?
How do I get rid of it?
There is one piece of customization in my dot .profile, namely

export PS1="\[\e[32;1m\]\w> \[\e[0m\]"

I also installed Conda recently, which might be related to that.

How do I remove (base) ?

Best Answer

  • It's a conda's environment indicator that none of the "new" environments is active, instead the default one is active. "new" here refers to those created by: conda create --name NameOfEnv python=3.6 or similar.

    For getting rid of it, add the line conda deactivate at the end of ~/.bash_profile.

    Verify by conda info --envs.