From: Vinay Sajip Date: Sun, 15 Jul 2012 20:58:13 +0000 (+0100) Subject: Closes #15361: Corrected venv prompt in PowerShell activation script. X-Git-Tag: v3.3.0b2~195 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e554f8b858b38424891a523d4c9e537200eacfef;p=thirdparty%2FPython%2Fcpython.git Closes #15361: Corrected venv prompt in PowerShell activation script. --- diff --git a/Lib/venv/scripts/nt/Activate.ps1 b/Lib/venv/scripts/nt/Activate.ps1 index 967ba5c64215..1c5ef98726a5 100644 --- a/Lib/venv/scripts/nt/Activate.ps1 +++ b/Lib/venv/scripts/nt/Activate.ps1 @@ -19,7 +19,7 @@ if (Test-Path env:_OLD_VIRTUAL_PATH) { # Set the prompt to include the env name copy-item function:prompt function:_OLD_VIRTUAL_PROMPT function prompt { - Write-Host -NoNewline -ForegroundColor Green [__VENV_NAME__] + Write-Host -NoNewline -ForegroundColor Green '[__VENV_NAME__]' _OLD_VIRTUAL_PROMPT }