Merge pull request #251 from teake/conda/sourcing

Source conda 4.4.4 shell files
This commit is contained in:
Yamashita, Yuu 2018-03-09 10:16:55 +09:00 committed by GitHub
commit 219a527a78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -237,7 +237,10 @@ if [ -x "${prefix}/bin/conda" ]; then
shopt -s nullglob
case "${shell}" in
fish )
: # conda doesn't support fish
# conda 4.4 and above
for script in "${prefix}/etc/fish/conf.d"/*.fish; do
echo "source \"${script}\";"
done
;;
* )
CONDA_PREFIX="$prefix"
@ -245,6 +248,10 @@ if [ -x "${prefix}/bin/conda" ]; then
for script in "${prefix}/etc/conda/activate.d"/*.sh; do
echo ". \"${script}\";"
done
# conda 4.4 and above
for script in "${prefix}/etc/profile.d"/*.sh; do
echo ". \"${script}\";"
done
;;
esac
shopt -u nullglob