我想知道为什么我(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)