diff --git a/bin/pyenv-sh-activate b/bin/pyenv-sh-activate index 08a666db..50aad560 100755 --- a/bin/pyenv-sh-activate +++ b/bin/pyenv-sh-activate @@ -190,9 +190,11 @@ if [ -d "${prefix}/conda-meta" ] || case "${shell}" in fish ) echo "set -gx CONDA_DEFAULT_ENV \"${CONDA_DEFAULT_ENV}\";" + echo "set -gx CONDA_PREFIX \"${prefix}\";" ;; * ) echo "export CONDA_DEFAULT_ENV=\"${CONDA_DEFAULT_ENV}\";" + echo "export CONDA_PREFIX=\"${prefix}\";" ;; esac fi diff --git a/bin/pyenv-sh-deactivate b/bin/pyenv-sh-deactivate index 4793d6f2..167be6a8 100755 --- a/bin/pyenv-sh-deactivate +++ b/bin/pyenv-sh-deactivate @@ -64,7 +64,7 @@ if [ -d "${prefix}/conda-meta" ] || shopt -s nullglob case "${shell}" in fish ) - : # conda doesn't support fish + echo "set -e CONDA_PREFIX" ;; * ) for script in "${prefix}/etc/conda/deactivate.d"/*.sh; do