shell下输入,编辑.bash_profile文件
vim ~/.bash_profile
在文件内部输入
if test -f .bashrc ; then
source .bashrc
fi
按Esc,输入:wq保存退出vim编辑器
重新启动shell,配置成功。
shell下输入,编辑.bash_profile文件
vim ~/.bash_profile
在文件内部输入
if test -f .bashrc ; then
source .bashrc
fi
按Esc,输入:wq保存退出vim编辑器
重新启动shell,配置成功。
本文标题:解决每次进入shell都要source ~/.bashrc问题
本文链接:https://www.haomeiwen.com/subject/yrzoghtx.html
网友评论