Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-89427: Set VIRTUAL_ENV_PROMPT even when VIRTUAL_ENV_DISABLE_PROMPT… #106643

Merged
merged 1 commit into from
Jul 13, 2023
Merged

gh-89427: Set VIRTUAL_ENV_PROMPT even when VIRTUAL_ENV_DISABLE_PROMPT… #106643

merged 1 commit into from
Jul 13, 2023

Conversation

jimporter
Copy link
Contributor

@jimporter jimporter commented Jul 11, 2023

… is set

The naming of these variables is slightly awkward, but VIRTUAL_ENV_PROMPT just holds the prefix string that gets applied to the prompt. We want to set that variable no matter what, since users who set VIRTUAL_ENV_DISABLE_PROMPT might want to use VIRTUAL_ENV_PROMPT in their own custom prompts.

… is set

The naming of these variables is slightly awkward, but VIRTUAL_ENV_PROMPT
just holds the prefix string that gets applied to the prompt. We want to set
that variable no matter what, since users who set VIRTUAL_ENV_DISABLE_PROMPT
might want to use VIRTUAL_ENV_PROMPT in their own custom prompts.
@cpython-cla-bot
Copy link

cpython-cla-bot bot commented Jul 11, 2023

All commit authors signed the Contributor License Agreement.
CLA signed

@artizirk
Copy link

There is also a older issue that has a comment requesting this feature #79509 (comment)

@vsajip vsajip merged commit af51bd7 into python:main Jul 13, 2023
vsajip pushed a commit that referenced this pull request Jan 23, 2024
…H-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.
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…MPT (pythonGH-106726)

This improves the implementation in pythongh-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.
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…MPT (pythonGH-106726)

This improves the implementation in pythongh-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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants