powershellterminaloh-my-posh

How to remove environment prefix in Powershell console


Does anybody knows how I can remove (venv) prefix that is displayed in my Powershell Terminal window? I know that this is purely cosmetic, but I'd love to remove it since I'm using Oh My Posh.

I've attached screenshot.enter image description here


Solution

  • I've found the best solution (for my case at least).

    Simply add: $env:VIRTUAL_ENV_DISABLE_PROMPT = 1 to $PROFILE