After executing conda init
, now every time I open PS, it displays:
PS>
rather than with the current directory
PS C:\Users\Me>
How do I make PS show me the current path?
I have a solution to add a PS script like:
function prompt {
$p = Get-Location
"$p> "
}
But the problem is that, though I have my current directory now, I won't be able to see my current env in conda. This means after excuting conda activate myenv
, current env myenv
is not displayed, while on the other hand I expect to see:
(myenv) PS C:\somePath>