conditional anaconda setup

This commit is contained in:
elkowar 2023-03-05 09:30:21 +01:00
parent d4041b68a9
commit ee51b1d0b8
No known key found for this signature in database
GPG key ID: E321AD71B1D1F27F

View file

@ -98,20 +98,22 @@ export ANDROID_HOME="/home/leon/Android/Sdk"
export ANDROID_NDK="/home/leon/Android/Sdk/ndk/21.4.7075529" export ANDROID_NDK="/home/leon/Android/Sdk/ndk/21.4.7075529"
export JAVA_HOME="/usr/lib/jvm/java-1.19.0-openjdk-amd64/" export JAVA_HOME="/usr/lib/jvm/java-1.19.0-openjdk-amd64/"
# >>> conda initialize >>> if [ -d "$HOME/anaconda3" ]; then
# !! Contents within this block are managed by 'conda init' !! # >>> conda initialize >>>
__conda_setup="$('/home/leon/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" # !! Contents within this block are managed by 'conda init' !!
if [ $? -eq 0 ]; then __conda_setup="$('/home/leon/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup" eval "$__conda_setup"
else else
if [ -f "/home/leon/anaconda3/etc/profile.d/conda.sh" ]; then if [ -f "/home/leon/anaconda3/etc/profile.d/conda.sh" ]; then
. "/home/leon/anaconda3/etc/profile.d/conda.sh" . "/home/leon/anaconda3/etc/profile.d/conda.sh"
else else
export PATH="/home/leon/anaconda3/bin:$PATH" export PATH="/home/leon/anaconda3/bin:$PATH"
fi fi
fi
unset __conda_setup
# <<< conda initialize <<<
fi fi
unset __conda_setup
# <<< conda initialize <<<
export PATH="/home/leon/.volta/bin:$PATH" export PATH="/home/leon/.volta/bin:$PATH"