How to reset path back to default
I was trying to add some lines to my path because some packages weren't installing properly while I was programming on my M1 mac and I ended up messing up the entire terminal. Now no terminal commands work, not even clear. I had some success running this line in the terminal:
PATH=/bin:/usr/bin:/usr/local/bin:${PATH}
but the problem is that every time I restart the terminal it goes back to not working until I run that command again.
not sure if this is helpful but this is what it says when I restart the terminal:
Last login: Fri Jun 11 14:58:43 on ttys000
/etc/zshrc:7: command not found: locale
/etc/zshrc_Apple_Terminal:104: command not found: mkdir
josht@Dimos-Air ~ %