summaryrefslogtreecommitdiffstats
path: root/Lib/venv/scripts/nt
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2013-10-02 10:36:16 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2013-10-02 10:36:16 (GMT)
commitdff9e2535f5bf73f1491edc45928eef51a701074 (patch)
treea8345bf9e94fb6095a0eb41da069232184009fe1 /Lib/venv/scripts/nt
parent7c411a40413d9525aeb6114d71be3e012dbf81f5 (diff)
downloadcpython-dff9e2535f5bf73f1491edc45928eef51a701074.zip
cpython-dff9e2535f5bf73f1491edc45928eef51a701074.tar.gz
cpython-dff9e2535f5bf73f1491edc45928eef51a701074.tar.bz2
Closes #19139: Changed usage of __VENV_NAME__ and added __VENV_PROMPT__.
Diffstat (limited to 'Lib/venv/scripts/nt')
-rw-r--r--Lib/venv/scripts/nt/Activate.ps12
-rw-r--r--Lib/venv/scripts/nt/activate.bat2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/venv/scripts/nt/Activate.ps1 b/Lib/venv/scripts/nt/Activate.ps1
index df78963..b15decb 100644
--- a/Lib/venv/scripts/nt/Activate.ps1
+++ b/Lib/venv/scripts/nt/Activate.ps1
@@ -34,7 +34,7 @@ $env:VIRTUAL_ENV="__VENV_DIR__"
function global:_OLD_VIRTUAL_PROMPT {""}
copy-item function:prompt function:_OLD_VIRTUAL_PROMPT
function global:prompt {
- Write-Host -NoNewline -ForegroundColor Green '__VENV_NAME__'
+ Write-Host -NoNewline -ForegroundColor Green '__VENV_PROMPT__'
_OLD_VIRTUAL_PROMPT
}
diff --git a/Lib/venv/scripts/nt/activate.bat b/Lib/venv/scripts/nt/activate.bat
index 3cebe26..9eab147 100644
--- a/Lib/venv/scripts/nt/activate.bat
+++ b/Lib/venv/scripts/nt/activate.bat
@@ -14,7 +14,7 @@ if defined _OLD_VIRTUAL_PYTHONHOME (
)
set "_OLD_VIRTUAL_PROMPT=%PROMPT%"
-set "PROMPT=__VENV_NAME__%PROMPT%"
+set "PROMPT=__VENV_PROMPT__%PROMPT%"
if defined PYTHONHOME (
set "_OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%"