Making the following change to Conda.psm1:275 mostly prevents the error.
if ($CondaModuleArgs.ChangePs1) {
# We use the same procedure to nest prompts as we did for nested tab completion.
if (Test-Path Function:\prompt) {
Rename-Item -Path Function:\prompt -NewName CondaPromptBackup -Force
} ...
However it does cause the prompt to be slightly broken.
Solution to issue cannot be found in the documentation.
Issue
With a fresh install of mambaforge on Windows 11. Added the following two profiles to the Windows Terminal.
The CMD version starts fine, but there is a problem with the Powershell version.
Making the following change to
Conda.psm1:275
mostly prevents the error.However it does cause the prompt to be slightly broken.
The environment name is repeated.
Installed packages
Environment info