no such file or directory: /Users/username/.oh-my-zsh/oh-my-zsh.sh

5,134

Okay, it was a quicky one, sorry it is 3am in here and I am little unconscious.

So I figured I can still use terminal and there was a file like /Users/new_username/.zshrc and the 4th line of this document was like export ZSH="/Users/old_username/.oh-my-zsh" and after I changed the path, boom, problem solved.

Hope it will be helpful for someone.

Share:
5,134

Related videos on Youtube

Eren
Author by

Eren

Updated on September 18, 2022

Comments

  • Eren
    Eren over 1 year

    I am using macOS+iTerm+ZSH. I changed my home directory name and name and now I am getting an error looks like down below:

    /Users/new_username/.zshrc:source:75: no such file or directory: /Users/old_username/.oh-my-zsh/oh-my-zsh.sh
    

    How can I solve this,

    Thank you.

  • Marlon Richert
    Marlon Richert about 3 years
    Please accept your own answer, so the question doesn't stay open.
  • Eren
    Eren about 3 years
    Did it, I wasn't aware of this, sorry.