在~/.bashrc里写好了相应环境,在桌面登陆可以直接使用,但ssh每次都需要source下,解决方法:
vim ~/.bash_profile
在文件内部输入
# 加载.bashrc文件
if test -f .bashrc ; then
source .bashrc
fi
在~/.bashrc里写好了相应环境,在桌面登陆可以直接使用,但ssh每次都需要source下,解决方法:
vim ~/.bash_profile
在文件内部输入
# 加载.bashrc文件
if test -f .bashrc ; then
source .bashrc
fi