Skip to content
Go back

Fixing Homebrew & Zsh Issues After macOS Upgrades

Updated:
Fixing Homebrew & Zsh Issues After macOS Upgrades

Note: This post was originally written during my upgrade from Catalina → Big Sur (2021). While macOS has since advanced (now Sequoia, 2025), the troubleshooting steps for Homebrew, Zsh, and oh-my-zsh remain broadly applicable when upgrading between versions.

After upgrading my Mac from Catalina to Big Sur, I found that while most new features worked seamlessly, my command line setup ran into several problems. Here, I share the solutions I used to resolve issues with Homebrew and ZSH.

Homebrew Fixes

  1. Ensure Xcode is installed:
xcode-select -p

If missing, install via the App Store and then:

xcode-select --install
  1. Diagnose Homebrew:
brew doctor

If Java cask issues occur:

brew uninstall --force java
rm -r "$(brew --prefix)/Caskroom/java"
brew install java

Finally, confirm:

Your system is ready to brew.

ZSH Fixes

Big Sur made Zsh the default shell. My setup broke because my terminal was still loading ~/.bash_profile instead of ~/.zshrc.

echo $0

Output showed /bin/bash → meaning I wasn’t in Zsh.

Bonus Tips

sh ~/.oh-my-zsh/tools/uninstall.sh
iTerm > Preferences > Profiles > Login Shell

iTerm preferences window showing how to set the login shell


Wrap-up

These steps should help you get back to a working command-line environment quickly.


You might also like


Share this post on:

Previous Post
Creating Python Virtual Environments
Next Post
Loading CSV Data in Rails: Then vs Now