From d3d6504e0159b363d94dc0e3b7ed64cb370491cb Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Mon, 14 Mar 2016 12:49:51 +0000 Subject: [PATCH] Set proper `CONDA_DEFAULT_ENV` for shorter name (#160) --- bin/pyenv-sh-activate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pyenv-sh-activate b/bin/pyenv-sh-activate index 870b8e7..6715e34 100755 --- a/bin/pyenv-sh-activate +++ b/bin/pyenv-sh-activate @@ -180,7 +180,7 @@ esac # anaconda/miniconda if [ -x "${prefix}/bin/conda" ]; then - if [[ "${venv}" != "${venv%/envs/*}" ]]; then + if [[ "${prefix}" != "${prefix%/envs/*}" ]]; then CONDA_DEFAULT_ENV="${venv##*/envs/}" else CONDA_DEFAULT_ENV="root"