darvid / zsh-poetry

🐚 Simple ZSH plugin for automatically activating and deactivating Poetry-created virtualenvs. 🐍
MIT License
73 stars 14 forks source link

Prefer the activated environment #13

Open NeilGirdhar opened 1 year ago

NeilGirdhar commented 1 year ago

Currently, the created shell uses the first environment in the poetry list. It should prefer the one marked (Activated) if one exists. E.g.,

tjax-DRMj3ydM-py3.10
tjax-DRMj3ydM-py3.11 (Activated)

makes a shell from the first one rather than the second.