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

Deactivate Conda environment before virtualenv activation #177

Open chopeen opened 2 years ago

chopeen commented 2 years ago

Set the environment variable AUTOSWITCH_DEACTIVATE_CONDA to make sure a Conda environment and a virtualenv are not both active at the same time.

No unit test was added for the new setting, because I'm unsure how to write it, so it does not fail on systems without Anaconda or Miniconda. Should I add one executed conditionally, only when conda command is available?