mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-08 11:33:55 -05:00
Set proper CONDA_DEFAULT_ENV for shorter name (#160)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user