Thursday, January 27, 2022

Linux Command Prompt Displays (base), why?

Upon logging to a Linux host, I observe that the command prompt contains (base), e.g,


(base) user@host ~] $

Variable PS1 has the value of (base) [\u@\h \W]\$


(base) [user@host ~] $ echo $PS1
(base) [\u@\h \W]\$

This is because we had Anaconda installed and Anaconda is showing which virtual environment we are in. To get rid of this, we can deactivate this by


conda config --set auto_activate_base false

No comments:

Post a Comment