From 393bcc36b8a96b34e4fe4c84ee5b89860a621133 Mon Sep 17 00:00:00 2001 From: Teake Nutma Date: Thu, 8 Mar 2018 10:08:53 +0100 Subject: [PATCH] Source conda 4.4.4 shell files Conda 4.4.4 (https://github.com/conda/conda/releases/tag/4.4.0) made some changes on how to set up conda in the shell. This commit addresses these. This fixes some of the discussion in #178. --- bin/pyenv-sh-activate | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/pyenv-sh-activate b/bin/pyenv-sh-activate index 2360346a..c3ffe79a 100755 --- a/bin/pyenv-sh-activate +++ b/bin/pyenv-sh-activate @@ -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