4 Commits

Author SHA1 Message Date
Andrew Christianson
a657fd7162 Merge ebef09bf3d into aa9b8e9a5a 2025-01-24 05:04:01 +00:00
Jason N. White
aa9b8e9a5a Update LICENSE, fix license year (#499)
Some checks failed
tests / tests (macos-13) (push) Has been cancelled
tests / tests (macos-14) (push) Has been cancelled
tests / tests (ubuntu-20.04) (push) Has been cancelled
tests / tests (ubuntu-22.04) (push) Has been cancelled
Signed-off-by: JasonnnW3000 <sufssl04@gmail.com>
2025-01-01 20:46:21 +03:00
Ivan Pozdeev
ebef09bf3d Merge branch 'master' into pr 2022-10-14 17:23:37 +03:00
Andrew Christianson
a54be0cab2 set/unset CONDA_PREFIX on activate 2019-03-05 11:22:13 -08:00
3 changed files with 4 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
Copyright (c) 2015 Yamashita, Yuu Copyright (c) 2025 Yamashita, Yuu
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the

View File

@@ -214,9 +214,11 @@ if [ -d "${prefix}/conda-meta" ] ||
case "${shell}" in case "${shell}" in
fish ) fish )
echo "set -gx CONDA_DEFAULT_ENV \"${CONDA_DEFAULT_ENV}\";" 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_DEFAULT_ENV=\"${CONDA_DEFAULT_ENV}\";"
echo "export CONDA_PREFIX=\"${prefix}\";"
;; ;;
esac esac
fi fi

View File

@@ -88,7 +88,7 @@ if [ -d "${prefix}/conda-meta" ] ||
shopt -s nullglob shopt -s nullglob
case "${shell}" in case "${shell}" in
fish ) fish )
: # conda doesn't support fish echo "set -e CONDA_PREFIX"
;; ;;
* ) * )
for script in "${prefix}/etc/conda/deactivate.d"/*.sh; do for script in "${prefix}/etc/conda/deactivate.d"/*.sh; do