Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] nvm does not update .zshrc #2565

Closed
Katze-942 opened this issue Aug 22, 2021 · 3 comments
Closed

[BUG] nvm does not update .zshrc #2565

Katze-942 opened this issue Aug 22, 2021 · 3 comments
Labels
installing nvm: profile detection Issues with nvm's own install script, related to figuring out the right profile file. shell: zsh

Comments

@Katze-942
Copy link

Katze-942 commented Aug 22, 2021

Operating system and version:

Linux someuserspc 5.13.11-1-MANJARO #1 SMP PREEMPT Sun Aug 15 13:15:18 UTC 2021 x86_64 GNU/Linux

How did you install nvm?

In the home directory, with the curl command

What steps did you perform?

cd 
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash

What happened?

nvm is not in zsh terminal
The problem is solved by manually editing ".zshrc" and adding there:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

Everything works correctly in bash

Is there anything in any of your profile files that modifies the PATH?

No.

@Katze-942 Katze-942 changed the title nvm does not update .zshrc [BUG] nvm does not update .zshrc Aug 22, 2021
@ljharb
Copy link
Member

ljharb commented Aug 22, 2021

This should be fixed in the next release by #2556. (also, please always fill out the entire issue template; it’s there for a reason)

@ljharb ljharb added installing nvm: profile detection Issues with nvm's own install script, related to figuring out the right profile file. shell: zsh labels Aug 22, 2021
@ljharb ljharb closed this as completed Aug 22, 2021
@Katze-942
Copy link
Author

Katze-942 commented Aug 22, 2021

I installed nvm yesterday. This bug still remains.

@ljharb
Copy link
Member

ljharb commented Aug 22, 2021

That’s why i said “next release”, which hasn’t happened yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installing nvm: profile detection Issues with nvm's own install script, related to figuring out the right profile file. shell: zsh
Projects
None yet
Development

No branches or pull requests

2 participants