This commit is contained in:
luk
2024-05-30 12:22:31 +08:00
parent fc712a068f
commit 6f5a2fb6d8
5 changed files with 52 additions and 24 deletions

19
conda-init.sh Normal file
View File

@@ -0,0 +1,19 @@
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
# __conda_setup="$('/opt/homebrew/Caskroom/miniconda/base/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
# if [ $? -eq 0 ]; then
# eval "$__conda_setup"
# else
# if [ -f "$(brew --repo)/Caskroom/miniconda/base/etc/profile.d/conda.sh" ]; then
# . "/opt/homebrew/Caskroom/miniconda/base/etc/profile.d/conda.sh"
# else
# export PATH="/opt/homebrew/Caskroom/miniconda/base/bin:$PATH"
# fi
# fi
# unset __conda_setup
# <<< conda initialize <<<
echo "Please run this script with 'source', otherwise it won't take effect in the current shell."
source "$(brew --repo)/Caskroom/miniconda/base/etc/profile.d/conda.sh"
conda activate base