Installing Homebrew on Apple MacBook Air with M1 CPU
When I install Homebrew it gave me a warning that it (Homebrew) is not in my path.
Okay. I know Unix /Linux.
Which file do I add this new path PATH=/opt/homebrew/bin:$PATH
but to either edit ~/.zshrc or ~/.bashrc. Now as I said I am on a Mack Air with
an M1. It is understandable that a the Homebrew is not in my path. But I need to
which file ~/.zshrc or ~/.bashrc. is not enough. Specifically which file and where is it?
My knowledge pf Unix tells me it is a hidden file behind. the Desktop.
It says on the internet to use
export PATH=/opt/homebrew/bin:$PATH.
But doesn't that just make the additional path temporary. If I sign off and comeback in a month I would have to perform the again.
What command would put that in the correct hidden file and leave it there - permanently?
Any help appreciated. Thanks in advance.
Respectfully,
Led_Zepplin