From 96bfa1532d1a49f884ed6ee28ec5d5967f7d0dee Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Wed, 2 Dec 2015 09:52:33 +0000 Subject: [PATCH] Skip virtualenv aliases as well (yyuu/pyenv-virtualenv#126) --- libexec/pyenv-versions | 1 + 1 file changed, 1 insertion(+) diff --git a/libexec/pyenv-versions b/libexec/pyenv-versions index 5944da00..6a422147 100755 --- a/libexec/pyenv-versions +++ b/libexec/pyenv-versions @@ -111,6 +111,7 @@ for path in "$versions_dir"/*; do if [ -n "$skip_aliases" ] && [ -L "$path" ]; then target="$(realpath "$path")" [ "${target%/*}" != "$versions_dir" ] || continue + [ "${target%/*/envs/*}" != "$versions_dir" ] || continue fi print_version "${path##*/}" # virtual environments created by anaconda/miniconda