Commit 5ec7648a by Savannah Ostrowski Committed by GitHub

Add details to basic usage docs about setting `VIRTUAL_ENV_DISABLE_PROMPT` (#7874)

parent ff77e26c
...@@ -149,6 +149,9 @@ Therefore, Poetry has to create a sub-shell with the virtual environment activat ...@@ -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. in order for the subsequent commands to run from within the virtual environment.
{{% /note %}} {{% /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 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). 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`. To get the path to your virtual environment run `poetry env info --path`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment