If you like me happen to purchase a new MacBook for software development purposes you would need to set environment variables.

I explored multiple sources on the internet for it and majority of them were suggesting to add the environment variables in the /Users/<user name>/.bash_profile file. To much of my surprise it was not working in MacOS Big Sur 11.X

Later I discovered that this is happening because Apple recently changed their default shell to zsh.

Finally the solution was to add the environment variables in the /Users/<user name>/.zshrc file instead of the .bash_profile file.

#mac #environment #bigsur

By spstech

Leave a Reply

Your email address will not be published. Required fields are marked *