به Nostr بپیوندید
2024-10-01 14:29:39 UTC

Trey Hunner 🐍 on Nostr: direnv users who auto-activate your .venv directory: how do you show the correct venv ...

direnv users who auto-activate your .venv directory: how do you show the correct venv prompt (not the .venv directory) in your PS1 shell prompt?

The only solutions I'm finding involve $(basename $VIRTUAL_ENV), which gives the venv directory name, not the --prompt that I gave on venv creation.

https://github.com/direnv/direnv/wiki/Python#zsh