I was trying to add sql to my zsh file and I ran this code I found online:
echo 'export PATH=${PATH}:/usr/local/mysql/bin/' >.zshrc
When I opened .zshrc, this was the only line in the file and everything I had before was deleted.
Can someone please help me in understanding if I can revert back to what I had before I made this change? Or is everything just lost now? And what about this line of code did this?
FYI, I'm using Mac. Also, things like commands like "brew" and "npm" are still working, despite my .zshrc being empty. I don't know if that's telling or helpful in any way. ("sql" still doesn't work)