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

前端 未结 9 635
北荒
北荒 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:10

    you don't need to update the file, zsh is mac's default, put this in terminal. e.g.:

    export ANDROID_HOME=$HOME/Library/Android/sdk
    export PATH=$PATH:$ANDROID_HOME/emulator
    export PATH=$PATH:$ANDROID_HOME/tools
    export PATH=$PATH:$ANDROID_HOME/tools/bin
    export PATH=$PATH:$ANDROID_HOME/platform-tools
    

提交回复
热议问题