Skip to content

[1168/1285] Implement changes to prompt behavior of activate.csh #1296

Closed

Description

@bskinn

Per discussion at #1168 and #1285, as part of harmonizing the prompt handling behavior of the various supported shells, implement changes to activate.csh to correct the following behaviors, with confirming tests:

  • Does NOT obey VIRTUAL_ENV_DISABLE_PROMPT
  • Does implement default __VIRTUAL_PROMPT__ when --prompt is not supplied, BUT with a prefix of "[$VIRTUAL_ENV] "
  • Does create __VIRTUAL_PROMPT__ from --prompt, BUT just inserts the argument to --prompt inside the standard prefix (becomes "[__VIRTUAL_PROMPT__] " instead of completely replacing the prefix):
$ virtualenv envtest --prompt="envtest---"
...
$ source envtest/bin/activate.csh
[envtest---] $

Activity

  1. locked and limited conversation to collaborators on Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions