V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
zhfish
V2EX  ›  macOS

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

  •  
  •   zhfish · 2014-08-31 11:35:08 +08:00 · 13131 次点击
    这是一个创建于 3525 天前的主题,其中的信息可能已经有所发展或是发生改变。
    7 条回复    2015-07-02 09:44:36 +08:00
    tamamaxox
        1
    tamamaxox  
       2014-08-31 11:41:24 +08:00
    在.zshrc下面改或者在 .profile(后面这个我不太记得work否)
    simaoji
        2
    simaoji  
       2014-08-31 11:46:11 +08:00
    把.bash_profile考到.zshrc里面吧
    zhfish
        3
    zhfish  
    OP
       2014-08-31 12:01:53 +08:00
    thanks 两位
    在.zshrc里执行了.bash_profile
    一切皆休~~~
    johnlui
        4
    johnlui  
       2014-08-31 21:59:11 +08:00
    建议拷过去,维护两分配置文件比一份配置文件费劲。。。
    zhfish
        5
    zhfish  
    OP
       2014-09-01 11:23:02 +08:00
    @johnlui .bash_profile比较常用吧... .zshrc基本不动它,其实是维护一份配置文件..就算卸载了zshrc也不影响..
    amghost
        6
    amghost  
       2015-06-25 19:45:44 +08:00
    @zhfish 请问怎么在.zshrc里执行.bash_profile
    taozhi8833998
        7
    taozhi8833998  
       2015-07-02 09:44:36 +08:00
    @amghost source ~/.bash_profile
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   975 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 21:15 · PVG 05:15 · LAX 14:15 · JFK 17:15
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.