Reputation: 575
I have been using iterm2 for a couple years now and its great. Lately, however, my prompt has changed in an odd way and I can't tell what it is telling me. Originally, my prompt looked like this:
<username>@<hostname>:<current_dir>$
Now, the prompt looks like this:
(base) $<username>@<hostname>:<current_dir>$
I'm running Mojave and checked my .bashrc file – everything looks normal there.
Does anyone have an idea as to what "(base)" is? What is it telling me? And how can I get rid of it?
Upvotes: 12
Views: 5317
Reputation: 385
It is when you have added conda
library to your path. Run conda deactivate
should get rid of the (base) text from your terminal
Upvotes: 2
Reputation: 575
I did some further analysis of my .bash_profile file and I was able to isolate the (base)
to a section that adds the Python Anaconda distribution into my path. After some further Googling, it turns out I had inadvertently created a virtual environment for my Anaconda work. This wasn't necessary, so I removed the environment by typing source deactivate
. My terminal session now no longer shows (base)
.
Thanks to Blockchain Business for the info on how to disable a virtual environment.
Upvotes: 24