When I started the virtual environment of conda, the prompt of bash collapsed.
[user@hostname pwd]$
[user@hostname pwd]$ source activate test
(test)[user@hostname pwd]$
[user@hostname pwd]$
[user@hostname pwd]$ source activate test
(test)
The root cause is unknown, but it was because CONDA_PS1_BACKUP =" $ PS1 "
was not read and was CONDA_PS1_BACKUP =
when source activate
was performed.
For the time being, describe the following in .bashrc and respond.
export CONDA_PS1_BACKUP="[\u@\h \W]$ "
There was a discussion on github, but it was unclear how it was resolved. .. .. https://github.com/conda/conda/issues/4916
Recommended Posts