0
点赞
收藏
分享

微信扫一扫

解决linux每次打开新终端都要重新source ~/.bashrc问题

忍禁 2024-08-31 阅读 21

登录后在命令行输入:

vim ~/.bash_profile

然后在打开的文件末尾加入以下代码(每次打开新终端可以自动执行 source ~/.bashrc):

if [ -f ~/.bashrc ];
then
    source ~/.bashrc
    conda activate python3_6
fi

最后输入::wq 保存即可。

举报

相关推荐

0 条评论