I use direnv v2.21.2 and want that the hook activates my previous created .venv
. If I use just source .venv/bin/activate
my environment gets activated, but PS1 reacts with an error message. I actually have no clue what to do with the PS1
variable but it seems not a big issue since I use starship
as my prompt. Not completly shure.
Using instead layout python3
works fine without error but creates the extra venv which I don't need. Any Ideas?
EDIT: The Error Message which is produced by direnv if unset PS1
is not used:
direnv: PS1 cannot be exported. For more information see https://github.com/direnv/direnv/wiki/PS1
The Message leads actually to the correct information, but doesn't help much about why the problem exist.