mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 07:16:18 -04:00
Set proper CONDA_DEFAULT_ENV for shorter name (#160)
This commit is contained in:
parent
15981986e5
commit
d3d6504e01
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue