macOS Catalina 10.15(beta) - Why is ~/.bash_profile not sourced by my shell?

前端 未结 9 616
北荒
北荒 2020-12-12 10:31

I want to set the environment variable I added below the line to ~/.bash_profile and ~/.profile but it didn\'t work.

export JBOSS_H         


        
9条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-12 11:18

    You can create a simbolic link and keep your .bash_profile file with this:

    ln -s .bash_profile .zsh_profile
    source .zsh_profile
    

    Any changes in .bash_profile will be reflected in .zsh_profile

提交回复
热议问题