$env:VIRTUAL_ENV="__VENV_DIR__"\r
\r
-# Set the prompt to include the env name\r
-# Make sure _OLD_VIRTUAL_PROMPT is global\r
-function global:_OLD_VIRTUAL_PROMPT {""}\r
-copy-item function:prompt function:_OLD_VIRTUAL_PROMPT\r
-function global:prompt {\r
- Write-Host -NoNewline -ForegroundColor Green '__VENV_PROMPT__'\r
- _OLD_VIRTUAL_PROMPT\r
+if (! $env:VIRTUAL_ENV_DISABLE_PROMPT) {\r
+ # Set the prompt to include the env name\r
+ # Make sure _OLD_VIRTUAL_PROMPT is global\r
+ function global:_OLD_VIRTUAL_PROMPT {""}\r
+ copy-item function:prompt function:_OLD_VIRTUAL_PROMPT\r
+ function global:prompt {\r
+ Write-Host -NoNewline -ForegroundColor Green '__VENV_PROMPT__'\r
+ _OLD_VIRTUAL_PROMPT\r
+ }\r
}\r
\r
# Clear PYTHONHOME\r