From dd478311f9ee6b3eb8d62b462c95ae4a55dbad1a Mon Sep 17 00:00:00 2001 From: Sophia Castellarin Date: Wed, 8 May 2019 16:56:54 -0500 Subject: [PATCH] Fix fish activation According to this issue: https://github.com/fish-shell/fish-shell/issues/3993 you can not just eval a script in fish. The proper way to do this is apparently to pipe the output to source. --- conda/core/initialize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda/core/initialize.py b/conda/core/initialize.py index 6d558634c55..047b7d6eb28 100644 --- a/conda/core/initialize.py +++ b/conda/core/initialize.py @@ -973,7 +973,7 @@ def _config_fish_content(conda_prefix): conda_initialize_content = dals(""" # >>> conda initialize >>> # !! Contents within this block are managed by 'conda init' !! - eval (eval %(conda_exe)s "shell.fish" "hook" $argv) + eval %(conda_exe)s "shell.fish" "hook" $argv | source # <<< conda initialize <<< """) % { 'conda_exe': conda_exe,