How to run bash_profile in mac terminal

September 15, 2022

How to run bash_profile in mac terminal

How to run bash_profile in mac terminal

bash_profile example

export PATH="/usr/local/opt/openjdk/bin:$PATH"
export ANDROID_HOME=/Users/bitfrit/Library/Android/sdk
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools

On MacOS: add source ~/.bash_profileto the end of~/.zshrc. Then this profile will be in effect when you open zsh.

open zsh.

Bitfrit@Bitfrit-MacBook-Air ~ % nano ~/.zshrc

Written by Manoj Bhardwaj who lives and works in Dharamshala Himachal Pradesh (India). My stackoverflow