小编Jim*_*mmy的帖子

为什么“(base)”出现在我的终端提示前?

我想知道为什么我(base)在终端提示的左侧。

我的提示图片

如果我source ~/.profile在终端中运行,它就会消失。

如果我关闭该终端并重新打开一个新终端,(base)是否又出现了。

我想知道它是什么。

这是我的内容.profile(不包括标准的 $path 东西和其他个性化的东西):

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi
fi
Run Code Online (Sandbox Code Playgroud)

这是我的 .bashrc 的内容

# If not running interactively, don't do anything
case $- in
    *i*) ;;
      *) return;;
esac

# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options …
Run Code Online (Sandbox Code Playgroud)

command-line bash prompt bashrc anaconda

199
推荐指数
4
解决办法
30万
查看次数

标签 统计

anaconda ×1

bash ×1

bashrc ×1

command-line ×1

prompt ×1