summaryrefslogtreecommitdiffstats
path: root/Lib/venv/scripts/posix/activate.csh
diff options
context:
space:
mode:
authorJim Porter <826865+jimporter@users.noreply.github.com>2024-01-23 08:53:04 (GMT)
committerGitHub <noreply@github.com>2024-01-23 08:53:04 (GMT)
commit8edc8029def8040ebe1caf75d815439156dd2124 (patch)
tree320f43aa9dde89fe0e673977003423bfe99d427b /Lib/venv/scripts/posix/activate.csh
parentb822b85ac11e73bbe4417bf03ee770ab116bb42d (diff)
downloadcpython-8edc8029def8040ebe1caf75d815439156dd2124.zip
cpython-8edc8029def8040ebe1caf75d815439156dd2124.tar.gz
cpython-8edc8029def8040ebe1caf75d815439156dd2124.tar.bz2
gh-89427: Provide the original prompt value for VIRTUAL_ENV_PROMPT (GH-106726)
This improves the implementation in gh-106643. Previously, venv passed "(<prompt>) " to the activation scripts, but we want to provide the original value so that users can inspect it in the $VIRTUAL_ENV_PROMPT env var. Note: Lib/venv/scripts/common/Activate.ps1 surrounded the prompt value with parens a second time, so no change was necessary in that file.
Diffstat (limited to 'Lib/venv/scripts/posix/activate.csh')
-rw-r--r--Lib/venv/scripts/posix/activate.csh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/venv/scripts/posix/activate.csh b/Lib/venv/scripts/posix/activate.csh
index 9caf138..c707f19 100644
--- a/Lib/venv/scripts/posix/activate.csh
+++ b/Lib/venv/scripts/posix/activate.csh
@@ -19,7 +19,7 @@ setenv VIRTUAL_ENV_PROMPT "__VENV_PROMPT__"
set _OLD_VIRTUAL_PROMPT="$prompt"
if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then
- set prompt = "__VENV_PROMPT__$prompt"
+ set prompt = "(__VENV_PROMPT__) $prompt"
endif
alias pydoc python -m pydoc