Confused about how to find my $PATH file to edit it
When I type $PATH I get back
zsh: no such file or directory: /opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
which is strange it says "no such file or directory" then gives what looks like would be the contents of such a file.
I need to add a PATH so was following along to a video that said to cd to ~ and ls -la to show hidden files and open up the .bash_profile and that is where all the paths are and i could add one.
However it seems I now run zsh. I did some more searching and found someone said it is now .zshrc but that file isn't in my path.
How can I find from what file the $PATH is coming from?
Thank you!
EDIT: https://superuser.com/questions/886132/where-is-the-zshrc-file-on-mac This says the .zshrc by default doesn't come with the new Big Sur update, so to create it. But, then where has my computer been getting the PATH's from all this time?