装了 ohmyzsh,为啥.bash_profile 就不执行了...那改环境变量应该去哪呢?

2014 年 8 月 31 日
 zhfish
13866 次点击
所在节点    macOS
7 条回复
tamamaxox
2014 年 8 月 31 日
在.zshrc下面改或者在 .profile(后面这个我不太记得work否)
simaoji
2014 年 8 月 31 日
把.bash_profile考到.zshrc里面吧
zhfish
2014 年 8 月 31 日
thanks 两位
在.zshrc里执行了.bash_profile
一切皆休~~~
johnlui
2014 年 8 月 31 日
建议拷过去,维护两分配置文件比一份配置文件费劲。。。
zhfish
2014 年 9 月 1 日
@johnlui .bash_profile比较常用吧... .zshrc基本不动它,其实是维护一份配置文件..就算卸载了zshrc也不影响..
amghost
2015 年 6 月 25 日
@zhfish 请问怎么在.zshrc里执行.bash_profile
taozhi8833998
2015 年 7 月 2 日
@amghost source ~/.bash_profile

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://study.congcong.us/t/130905

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX