$PATH doesn't show .bash_profile, only shows /etc/paths I have a beautifully set .bash_profile and everything was working well, then I updated to zsh. I installed Visual Studio for Mac, for a while I didn't realise that something was wrong, today I saw that all my paths were gone and I could only see the ones below when I echo:

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands


It's what I have in /etc/paths and my Visual Studio paths.
Now I tried setting the source, but this only works during the current session, when I close and open my terminal again, it resets back to this broken one.

I looked through my files, I don't have a .profile or a .bashrc either. I even tried turning my Mac off and on again.

my .bash_profile:

export PATH="/usr/local/opt/node@10/bin:$PATH"
export ANDROID_HOME=/Users/me/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
export PATH=/Users/me/flutter/bin:$PATH
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] &amp;&amp; \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] &amp;&amp; \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion



How can I make my Terminal just read .bash_profile?
For anyone who experiences this issue, I apparently it was broken after my zsh update.

Found the solution here:


  .bash_profile is a file read only by bash, which is not compatible with zsh. If we start sourcing .bash_profile bad things will start to happen. Instead, you should copy those ENV vars to the .zshrc file, preferably at the end of it.


Apparently you have to put everything into .zshrc instead of .bash_profile after this update. Some things might work a little different, btw, e.g. PROMPT colors. That wasn't an issue in this case, though.

Note that like with bash, there's a bunch of other files that may be sourced depending on the kind of shell you open that can contain various different settings, see here for a related question.