I have found the problem. The issue was not directly related to .zshrc as commenting out the entire file gave me the same results. It was clear to me that the issue was happening before .zshrc was loaded. My advice to anybody with a zsh issue look at all the components of zsh.
Anyway, when installing Python 3.8 I noticed that the path was set in .zprofile ( in my home folder) automatically. I amended it such that the path to Python was appended to the other paths, as to give the default paths preference: path+= ('path-to-python3') echo PATH. However, I noticed that it was still preceding another path that I appended
Run the command open ~/.oh-my-zsh and navigate to .oh-my-zsh > custom > plugins directory to view the cloned directory. Then, add the plugin to the plugin section of the ~/.zshrc config file. plugins=( git docker zsh-syntax-highlighting zsh-autosuggestions ) Update your changes by running the command source ~/.zshrc.
In macOS 10.15 or beyond (Catalina, Big Sur, Monterey), you need to edit the .zshrc file instead of the .bashrc or .bash_profile file. In the process, you may face a big problem: you cannot find the .bashrc file on your Mac.
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.
Step 5: Apply Changes. Run the below command in terminal to apply changes to Zsh shell. Copy. source ~/.zshrc. Now if you do a java --version, you should see that you have the JAVA_HOME JDK being used. [Macbook % java --version openjdk 21 2023-09-19 OpenJDK Runtime Environment (build 21+35-2513) OpenJDK 64-Bit Server VM (build 21+35-2513, mixed
BfniGR.