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 JAVA_HOME="/usr/lib/jvm/java-1.19.0-openjdk-amd64/"
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/leon/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/leon/anaconda3/etc/profile.d/conda.sh" ]; then
. "/home/leon/anaconda3/etc/profile.d/conda.sh"
if [ -d "$HOME/anaconda3" ]; then
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/leon/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
export PATH="/home/leon/anaconda3/bin:$PATH"
if [ -f "/home/leon/anaconda3/etc/profile.d/conda.sh" ]; then
. "/home/leon/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/home/leon/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
fi
unset __conda_setup
# <<< conda initialize <<<
export PATH="/home/leon/.volta/bin:$PATH"