MichaelAquilina / zsh-autoswitch-virtualenv

🐍 ZSH plugin to automatically switch python virtualenvs (including pipenv and poetry) as you move between directories
GNU General Public License v3.0
507 stars 80 forks source link

Allow specifying full path to virtual environment in .venv file #193

Open aszalowski opened 10 months ago

aszalowski commented 10 months ago

Hi,

Sometimes its useful for me to use an existing virtual environment so I added an option to specify an absolute path in a .venv file which then will be treated as a path to virtual environment.

For now this simply checks if the string in .venv file starts with / which works for me at the moment.

Let me know if this is a feature you would like to see added to the project. I am willing to do some extra work on this if anything else is needed before merging.