superkolya
superkolya

Reputation: 81

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)

Upvotes: 7

Views: 42880

Answers (3)

Murthy Tumuluri
Murthy Tumuluri

Reputation: 11

move source $ZSH/oh-my-zsh.sh after the path variable. So it looks like below. save and reopen terminal.

export ZSH="/Users/<username>/.oh-my-zsh"
export PATH=$HOME/bin:/usr/local/bin:$ZSH:$PATH
source $ZSH/oh-my-zsh.sh

Upvotes: 1

Sunil Aleti
Sunil Aleti

Reputation: 96

  • 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

Upvotes: 8

Abdullah Al Mahmud
Abdullah Al Mahmud

Reputation: 421

  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.

Upvotes: -1

Related Questions