Home > Enterprise >  Changing how conda activate/deactivate updates $PS1
Changing how conda activate/deactivate updates $PS1

Time:09-28

I recently updated conda to 22.9.0

When I do conda activate envname my prompt now looks like:

(envname)

instead of

(envname)[user@host cwd]$

What should I do for $PS1 to be set like below after a call to conda activate/deactivate?

PS1="($(basename "$CONDA_PREFIX"))[\u@\h \W]\\$ "

CodePudding user response:

Following the discussion here, try running conda init bash then restarting the shell.

  • Related