chore(.zshrc): comment out the export PATH line added by conda initialize to prevent conflicts with anaconda setup

This commit is contained in:
David Ibia
2024-10-01 15:13:02 +01:00
parent 36c40f8e39
commit c23ac092f6

18
.zshrc
View File

@@ -259,7 +259,7 @@ PERL_MM_OPT="INSTALL_BASE=$HOME/perl5"; export PERL_MM_OPT;
## Setup anaconda ## Setup anaconda
export PATH="/opt/homebrew/anaconda3/bin:$PATH" # export PATH="/opt/homebrew/anaconda3/bin:$PATH" # commented out by conda initialize
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! #THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman" export SDKMAN_DIR="$HOME/.sdkman"
@@ -270,3 +270,19 @@ export STARSHIP_CONFIG="$HOME/.config/starship.toml"
eval "$(starship init zsh)" eval "$(starship init zsh)"
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/homebrew/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/opt/homebrew/anaconda3/etc/profile.d/conda.sh" ]; then
. "/opt/homebrew/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/opt/homebrew/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<