MoonLiightz / dotfiles

My dotfiles and personal preferences for macOS and debian based linux.
MIT License
3 stars 2 forks source link

oh-my-zsh.sh no such file or directoy #11

Open bjoerntorben opened 1 year ago

bjoerntorben commented 1 year ago

System information

OS: macOS Ventura 13.2 arch: arm64 Package Manager: Homebrew 3.6.20 zsh: 5.9 (arm-apple--darwin-22.1.0)

Bug description

Error message prompt: /Users/username/.zshrc:source:30: no such file or directory: /Users/username/.oh-my-zsh/oh-my-zsh.sh

Steps to reproduce

  1. ./bootstrap.sh all
  2. answer all questions with 'Y'
  3. Restart terminal

Expected behavior

No error messages at all.

Logs, Screenshots, Captures, etc

No response

MoonLiightz commented 1 year ago

It looks like oh-my-zsh was either not installed at all or not installed properly. Can you confirm this? Were there any errors when running the bootstrap script? I'm currently not aware of anything in that regard, and I can't reproduce it.

bjoerntorben commented 1 year ago

oh-my-zsh was not installed at all. I can reproduce this issue. Let me know if you need further information to analyze this behavior.

MoonLiightz commented 1 year ago

Can you test it again with the latest version @bjoerntorben?

MoonLiightz commented 1 year ago

It works again under Linux.

bjoerntorben commented 1 year ago

I retried the installation and the original error message is gone. Instead i got three new messages:

[ERROR]: When using instant prompt, Powerlevel10k must be loaded before the first prompt. ```sh You can: - Recommended: Change the way Powerlevel10k is loaded from ~/.zshrc. See https://github.com/romkatv/powerlevel10k/blob/master/README.md#installation. * You will not see this error message again. * Zsh will start quickly. - Disable instant prompt either by running p10k configure or by manually defining the following parameter: typeset -g POWERLEVEL9K_INSTANT_PROMPT=off * You will not see this error message again. * Zsh will start slowly. - Do nothing. * You will see this error message every time you start zsh. * Zsh will start slowly. I added the following entry manually to .zshrc, to get rid of this message: echo "typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet" >> .zshrc ```
[oh-my-zsh] nvm installation cannot be found
[oh-my-zsh] set NVM_DIR to your installation

Just to clarify, the system is a freshly installed macOS 13.4.1 with the following configuration:

Do you need additional informations @MoonLiightz?

MoonLiightz commented 1 year ago

What you describe @bjoerntorben occurs because the oh-my-zsh nvm plugin is used (L20), but nvm is not installed on your system.

https://github.com/MoonLiightz/dotfiles/blob/daf8ded10a64fde07fe88fc97a778eab182d7e86/zsh/zshrc.symlink#L15-L28