change "echo ===" to "echo #<<<" to avoid confusing when searching for ===

This commit is contained in:
Luk
2024-12-13 20:09:17 +08:00
parent 4f1b5809e0
commit c063e02f1e
58 changed files with 328 additions and 265 deletions

View File

@@ -1,13 +1,13 @@
# >>> 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)"
# __conda_setup="$('/usr/local/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"
# if [ -f "/usr/local/Caskroom/miniconda/base/etc/profile.d/conda.sh" ]; then
# . "/usr/local/Caskroom/miniconda/base/etc/profile.d/conda.sh"
# else
# export PATH="/opt/homebrew/Caskroom/miniconda/base/bin:$PATH"
# export PATH="/usr/local/Caskroom/miniconda/base/bin:$PATH"
# fi
# fi
# unset __conda_setup
@@ -15,5 +15,12 @@
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"
if [ -f "/usr/local/Caskroom/miniconda/base/etc/profile.d/conda.sh" ]
then
source "/usr/local/Caskroom/miniconda/base/etc/profile.d/conda.sh"
elif [ -f "/opt/homebrew/Caskroom/miniconda/base/etc/profile.d/conda.sh" ]
then
source "/opt/homebrew/Caskroom/miniconda/base/etc/profile.d/conda.sh"
fi
conda activate base