Oh My Zsh made my terminal completely unusable. Help please! #12269
-
Hello everyone. I'm new to web-development. I've only been studying for a year now, so this could be user error. I'm not sure. Yesterday, I created a local mySQL database for a project I'm working on. The only thing terminal-wise I did there was I created a "zprofile" because my iMac did not have one. Inside the .zprofile, I simply wrote a path for mySQL. I just want to mention I did all this if perhaps it is relevant. Now, after I changed the variable, I decided I wanted to make my terminal look better. I have ohmysh on my laptop (installed by my brother, a web dev), so I thought it would be nice on my desktop as well. The default terminal for my iMac is bash (2019), but years ago I changed it (somehow) to permanently use zsh. For years, I have had no issues... Enter ohmyzsh. Yesterday after installing oh my zsh I shut my computer down and ended the day. Today, my terminal greets me with the following code: /etc/zshrc:7: command not found: locale I want to re-state that I do not press anything for this to appear. I've quit the system multiple times and I can't get it to go away. Initially, I thought it was an issue with node, so I uninstalled it and then re-installed it. That didn't work. I've checked with ChatGPT, and it has no definite answer other than completely rewriting my zshrc file manually, which I am not trained to do. Digging around in Finder to avoid using the terminal, here are some things I have found in my users/username file: An empty (0kb) pre-ohmy-zsh file. There are also a bunch of compdumps as well as many unrelated installments like vsCode and Yarn. I'm really not sure what caused this issue but I have a STRONG feeling it was oh-my-zsh. Can anyone help me? I would be SO grateful. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
What did you put in .zprofile? Was it maybe |
Beta Was this translation helpful? Give feedback.
Hi Chase! If the content of
.zprofile
is a literal copy-paste, thePATH
variable is missing a dollar, otherwise the previous contents are not preserved. Here's how it should look:As to code formatting in GitHub, it uses Markdown, so you can use code blocks so that code is shown as is (and even with syntax highlighting).