V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
zhfish
V2EX  ›  macOS

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

  •  
  •   zhfish · Aug 31, 2014 · 13866 views
    This topic created in 4266 days ago, the information mentioned may be changed or developed.
    7 replies    2015-07-02 09:44:36 +08:00
    tamamaxox
        1
    tamamaxox  
       Aug 31, 2014
    在.zshrc下面改或者在 .profile(后面这个我不太记得work否)
    simaoji
        2
    simaoji  
       Aug 31, 2014
    把.bash_profile考到.zshrc里面吧
    zhfish
        3
    zhfish  
    OP
       Aug 31, 2014
    thanks 两位
    在.zshrc里执行了.bash_profile
    一切皆休~~~
    johnlui
        4
    johnlui  
       Aug 31, 2014
    建议拷过去,维护两分配置文件比一份配置文件费劲。。。
    zhfish
        5
    zhfish  
    OP
       Sep 1, 2014
    @johnlui .bash_profile比较常用吧... .zshrc基本不动它,其实是维护一份配置文件..就算卸载了zshrc也不影响..
    amghost
        6
    amghost  
       Jun 25, 2015
    @zhfish 请问怎么在.zshrc里执行.bash_profile
    taozhi8833998
        7
    taozhi8833998  
       Jul 2, 2015
    @amghost source ~/.bash_profile
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3608 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 448ms · UTC 00:37 · PVG 08:37 · LAX 17:37 · JFK 20:37
    ♥ Do have faith in what you're doing.