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 ~ % 



Posted on Jun 11, 2021 12:10 PM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to reset path back to default

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.