You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Terminal indicates that (base) is activated for virtual environments in powershell #21903
conda init powershell script configures conda to automatically activate (base) environment in powershell.
Powershell itself does not have a shell specific variable we can change to influence the shell prompt.
For conda environments though, conda init itself embeds a CONDA_PROMPT_MODIFIER variable into the powershell init script, which we can influence to change the prompt 😀
For virtual environments, no such initialization is done hence this is what currently appears when opening a new terminal 🙁
One hack we could've done was that for virtual environments, we use the CONDA_PROMPT_MODIFIER variable itself to set the prompt.
But we had a team discussion about this, and decided that the situation where users are using both conda and virtual environments is probably rare, so let's not preemptively add this hack. We can add it later based on feedback if there's confusion.
Activity
karrtikr commentedon Aug 30, 2023
One hack we could've done was that for virtual environments, we use the
CONDA_PROMPT_MODIFIERvariable itself to set the prompt.But we had a team discussion about this, and decided that the situation where users are using both conda and virtual environments is probably rare, so let's not preemptively add this hack. We can add it later based on feedback if there's confusion.
Closing as designed.