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" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
How can I make my Terminal just read .bash_profile
?