I am new to Mac and was following a video and typed
-bash: homebrew: command not found.
The command for homebrew is
You can reset your path by restarting your shell. If you changed it in your ~/.bash_profile, edit it with TextEdit or similar first to remove the offending line, and restart the shell.