I would like to change the base
install environment that initiates when I start a terminal to a different environment that I have created called myenv
anaconda environment.
I want myenv
to start every time I start the terminal.
I have turned off the base
environment from initiating.
conda config --set auto_activate_base false
I am on Ubuntu 20.04.
In my .bashrc
file I already have a conda
init at the end. I am not sure if I should anything with it.
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/MYUSERNAME/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/nul>
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/MYUSERNAME/anaconda3/etc/profile.d/conda.sh" ]; then
. "/home/MYUSERNAME/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/home/MYUSERNAME/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
conda activate myenv
in your~/.bashrc
work for you?