Set proper CONDA_DEFAULT_ENV for shorter name (#160)

This commit is contained in:
Yamashita, Yuu
2016-03-14 12:49:51 +00:00
parent 15981986e5
commit d3d6504e01

View File

@@ -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"