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

2014-08-31 11:35:08 +08:00
 zhfish
13225 次点击
所在节点    macOS
7 条回复
tamamaxox
2014-08-31 11:41:24 +08:00
在.zshrc下面改或者在 .profile(后面这个我不太记得work否)
simaoji
2014-08-31 11:46:11 +08:00
把.bash_profile考到.zshrc里面吧
zhfish
2014-08-31 12:01:53 +08:00
thanks 两位
在.zshrc里执行了.bash_profile
一切皆休~~~
johnlui
2014-08-31 21:59:11 +08:00
建议拷过去,维护两分配置文件比一份配置文件费劲。。。
zhfish
2014-09-01 11:23:02 +08:00
@johnlui .bash_profile比较常用吧... .zshrc基本不动它,其实是维护一份配置文件..就算卸载了zshrc也不影响..
amghost
2015-06-25 19:45:44 +08:00
@zhfish 请问怎么在.zshrc里执行.bash_profile
taozhi8833998
2015-07-02 09:44:36 +08:00
@amghost source ~/.bash_profile

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

https://www.v2ex.com/t/130905

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

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

© 2021 V2EX