Mac中在修改了.base_profile的之后每次都得让修改之后的配置文件生效
source .base_profile
可以在~/.profile 文件中添加一行
source ~/.bash_profile
然后关闭调terminal,再次打开terminal之前修改的.base_profile就已经生效了
不过其实打一句source .base_profile也没什么
亲测有效!
本文介绍在Mac中如何使修改后的.base_profile配置文件立即生效。通过在~/.profile中添加source ~/.bash_profile命令,或者直接执行source .base_profile,可以避免每次重启Terminal的麻烦。
Mac中在修改了.base_profile的之后每次都得让修改之后的配置文件生效
source .base_profile
可以在~/.profile 文件中添加一行
source ~/.bash_profile
然后关闭调terminal,再次打开terminal之前修改的.base_profile就已经生效了
不过其实打一句source .base_profile也没什么
亲测有效!
1689
2万+

被折叠的 条评论
为什么被折叠?