Skip to content

Commit

Permalink
Add details to basic usage docs about setting `VIRTUAL_ENV_DISABLE_PR…
Browse files Browse the repository at this point in the history
  • Loading branch information
Savannah Ostrowski authored May 8, 2023
1 parent ff77e26 commit 5ec7648
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/basic-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ Therefore, Poetry has to create a sub-shell with the virtual environment activat
in order for the subsequent commands to run from within the virtual environment.
{{% /note %}}

If you'd like to prevent `poetry shell` from modifying your shell prompt on virtual environment activation, you should
set `VIRTUAL_ENV_DISABLE_PROMPT=1` as an environment variable before running the command.

Alternatively, to avoid creating a new shell, you can manually activate the
virtual environment by running `source {path_to_venv}/bin/activate` (`{path_to_venv}\Scripts\activate.ps1` in PowerShell).
To get the path to your virtual environment run `poetry env info --path`.
Expand Down

0 comments on commit 5ec7648

Please sign in to comment.