.bashrc文件自动生效

来源:互联网 发布:南美洲最发达国家知乎 编辑:程序博客网 时间:2024/05/19 00:13

之前的配置写在 home/用户目录/ 下的.bashrc 里

通过ssh每次访问都需要重新source一下


发现在 .bash_profile里面再引用一次.bashrc就可以了


vim ~/.bash_profile添加代码


if test -f .bashrc ; thensource .bashrcfi


wq保存即可


之后每次ssh登陆都会自动生效

原创粉丝点击