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

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

  •  
  •   zhfish · 2014 年 8 月 31 日 · 13724 次点击
    这是一个创建于 4151 天前的主题,其中的信息可能已经有所发展或是发生改变。
    7 条回复    2015-07-02 09:44:36 +08:00
    tamamaxox
        1
    tamamaxox  
       2014 年 8 月 31 日
    在.zshrc下面改或者在 .profile(后面这个我不太记得work否)
    simaoji
        2
    simaoji  
       2014 年 8 月 31 日
    把.bash_profile考到.zshrc里面吧
    zhfish
        3
    zhfish  
    OP
       2014 年 8 月 31 日
    thanks 两位
    在.zshrc里执行了.bash_profile
    一切皆休~~~
    johnlui
        4
    johnlui  
       2014 年 8 月 31 日
    建议拷过去,维护两分配置文件比一份配置文件费劲。。。
    zhfish
        5
    zhfish  
    OP
       2014 年 9 月 1 日
    @johnlui .bash_profile比较常用吧... .zshrc基本不动它,其实是维护一份配置文件..就算卸载了zshrc也不影响..
    amghost
        6
    amghost  
       2015 年 6 月 25 日
    @zhfish 请问怎么在.zshrc里执行.bash_profile
    taozhi8833998
        7
    taozhi8833998  
       2015 年 7 月 2 日
    @amghost source ~/.bash_profile
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5796 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 02:34 · PVG 10:34 · LAX 18:34 · JFK 21:34
    ♥ Do have faith in what you're doing.