打开您的 .bashrc
文件
vim ~/.bashrc
在文件末尾添加以下内容:
# Source global environment
if [ -f /etc/profile ]; then
. /etc/profile
fi
保存并退出文件。
重新登录或执行 source ~/.bashrc
命令,使配置生效。
大功告成!
打开您的 .bashrc
文件
vim ~/.bashrc
在文件末尾添加以下内容:
# Source global environment
if [ -f /etc/profile ]; then
. /etc/profile
fi
保存并退出文件。
重新登录或执行 source ~/.bashrc
命令,使配置生效。
大功告成!