2

I have installed Fish on my Ubuntu, but every time I open my terminal I have to run the bash command to initiate conda base. I hadn't this problem with ZSH in the past.

Is there any solution to make it run as conda base by default?

2 Answers 2

3

As also mentioned in nicdelillo's answer in the Add conda to path in fish StackOverflow question, just run the following command from your Bash shell:

conda init fish

This command will add something like this in your .config/fish/config.fish file:

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
eval /home/user/miniconda3/bin/conda "shell.fish" "hook" $argv | source
# <<< conda initialize <<<

After that just open a new fish session and you should be able to initialize your conda environment as you do using the Bash shell.

2
0

On Mac OS, basically I made the mistake of installing anaconda before fish and it was throwing errors when launching fish shell in pycharm terminal.

  • I first went to zsh shell.
  • Then uninstalled anaconda using brew uninstall anaconda
  • Then installed anaconda again brew install anaconda
  • Finally I executed cond init fish

Now whenever I start a fish shell I don't get errors.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .