I saw this post on Stackoverflow. This answer is mostly correct but it omits lots of details. For example, I don’t have a .zshrc file in the begining, how do I create it first. After entering export PATH="/opt/homebrew/bin:$PATH", how do I save and exit?

This post is to help solve this problem.

First of all, open your Terminal. If you don’t have a …