Bye Bye Bash! MacOS Catalina update, moving on to zsh, fixing bugs

March 20, 2020 - React Redux Sass Jest - 1 min read

Mac computer with microphone and clock

Bye Bye Bash! MacOS Catalina update, moving on to zsh, fixing bugs

When I updated my macOS to Catalina I went from using bash to using zsh and ran into a few issues. This is a short Tutorial on how I fixed them.

I upgraded to the new OS Catalina, which now uses zsh instead of bash.

To install szh run:

chsh -s /bin/zsh

I received this error when trying to do β€˜git branch’:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

In order to fix it I ran:

xcode-select --install

The problem is that one has to explicitly agree to the license agreement. If that does not work try:

xcode-select --reset

If your terminal yells at you to use sudo, you can run the following command, which will ask you for your password:

sudo xcode-select --reset

I then created a ~/.zshrc file and copied in everything from my ~/.bash_profile. This fixed all my errors I was receiving.


I hope this very quick debug tips help you to upgrade to Catalina and to start using zsh.


Profile picture

Written by Christina Hastenrath
Software Engineer @Postman πŸ‘©β€πŸš€ Follow me on Twitter for more tech content πŸ™Œ

Β© 2021, Built with πŸ’š by Christina Hastenrath