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

Multiple .virtualenv directories with AUTOSWITCH_VIRTUAL_ENV_DIR #170

Closed cjmcgraw closed 2 years ago

cjmcgraw commented 2 years ago

Issue Details

export AUTOSWITCH_VIRTUAL_ENV_DIR=".virtualenv"  \
&& mkdir -p a/b/c/d/e/f/g \
&& mkvenv \
&& cd a && cd b && cd c && cd d && cd e && cd f && cd g \
&& cd ../../../../../../.. \
&& find . -type d -name .virtualenv

expected: .virtualenv/ actual:

./a/b/c/d/e/f/g/.virtualenv
./a/b/c/d/e/f/.virtualenv
./a/b/c/d/e/.virtualenv
./a/b/c/d/.virtualenv
./a/b/c/.virtualenv
./a/b/.virtualenv
./a/.virtualenv
./.virtualenv

Operating System (uname -a)

Linux delta 5.13.0-35-generic #40~20.04.1-Ubuntu SMP Mon Mar 7 09:18:32 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

zsh version (zsh --version)

zsh 5.8 (x86_64-ubuntu-linux-gnu)

autoswitch-virtualenv version

3.5.0

How is zsh-autoswitch-virtualenv installed?

cjmcgraw commented 2 years ago

Appears to be a dupe of: https://github.com/MichaelAquilina/zsh-autoswitch-virtualenv/issues/128