Bash 如何不在我的终端中添加conda并从终端提示符的前面删除(base)

Bash 如何不在我的终端中添加conda并从终端提示符的前面删除(base),bash,macos,conda,Bash,Macos,Conda,我已经安装了conda,每次打开终端conda都会自动运行,并在终端提示符前放置一个(base)。我正试图关闭这个conda函数,需要这里的帮助才能完成。下面是我的.bash\u配置文件,请告诉我如何修改它,默认情况下不要在终端中添加conda。谢谢 export PATH="~/go/bin:$PATH" export PATH="~/.local/bin:$PATH" # added by Anaconda3 2019.07 installer # >>> conda in

我已经安装了conda,每次打开终端conda都会自动运行,并在终端提示符前放置一个(base)。我正试图关闭这个conda函数,需要这里的帮助才能完成。下面是我的
.bash\u配置文件
,请告诉我如何修改它,默认情况下不要在终端中添加conda。谢谢

export PATH="~/go/bin:$PATH"
export PATH="~/.local/bin:$PATH"
# added by Anaconda3 2019.07 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/Users/zwang/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
    \eval "$__conda_setup"
else
    if [ -f "/Users/zwang/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/Users/zwang/anaconda3/etc/profile.d/conda.sh"
        CONDA_CHANGEPS1=false conda activate base
    else
        \export PATH="/Users/zwang/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda init <<<

. ~/.bashrc
export PATH=“~/go/bin:$PATH”
导出路径=“~/.local/bin:$PATH”
#由Anaconda3 2019.07安装程序添加
#>>>康达初始化>>>
# !! 此块中的内容由“conda init”管理!!
__conda_setup=“$(conda_REPORT_ERRORS=false'/Users/zwang/anaconda3/bin/conda'shell.bash hook 2>/dev/null)”
如果[$?-等式0];然后
\评估“$\uuu conda\u设置”
其他的
如果[-f”/Users/zwang/anaconda3/etc/profile.d/conda.sh“;然后
. “/Users/zwang/anaconda3/etc/profile.d/conda.sh”
CONDA_CHANGEPS1=假CONDA激活基
其他的
\导出路径=“/Users/zwang/anaconda3/bin:$PATH”
fi
fi
未设置条件设置

#我从这篇文章中找到了解决方案:

This can also be because auto_activate_base is set to True. You can check this using the following command

conda config --show | grep auto_activate_base
To set it false

conda config --set auto_activate_base False
source ~/.bashrc
To reactivate set it to True

conda config --set auto_activate_base True
source ~/.bashrc