mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-26 14:12:23 +00:00
conditional anaconda setup
This commit is contained in:
parent
d4041b68a9
commit
ee51b1d0b8
1 changed files with 13 additions and 11 deletions
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue