why does terminal start with '/Users/nicholas/.zshrc:source:75: no such file or directory:' after uninstalling ohmyzsh?

Viewed 9634

i've uninstalled ohmyzsh and now everytime i start my termial it says this:

Last login: Sat Feb  6 13:53:16 on ttys001  
/Users/nicholas/.zshrc:source:75: no such file or directory: /Users/nicholas/.oh-my-zsh/oh-my-zsh.sh  
nicholas@macbook ~%

How to fix it?

(original screenshot here)

2 Answers
  • open .zshrc If you can't find find .zshrc, then type "ls -a" in terminal to get hidden files
  • After opening .zshrc file, comment the line 75 by appending "#"

Check this image

  1. First you need to open the terminal on your mac.
  2. Then type "ls -a" now you can see all .zsh files on your macOS
  3. Delete .zsh file using this command "rm .zsh" then hit the enter.
Related