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

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)



Solution 1:[1]

  • 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

Solution 2:[2]

  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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sunil Aleti
Solution 2 Abdullah Al Mahmud