This commit is contained in:
Andrew Christianson 2026-05-03 22:50:27 +00:00 committed by GitHub
commit 4afb746f3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -214,9 +214,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

View file

@ -88,7 +88,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