-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Option on install to not add path to .profile #2076
Comments
that already does what, invokes nvm? all the install script’s added line does is sources nvm.sh, which auto-uses the default if you have one set. |
Yes it sources it. ATM when I run the install script via 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 I just would like to have an option to prevent that. |
why? that’s needed for nvm to work. |
Specifically I don’t know what a prezto plugin is or how it works, so perhaps explaining that would help me understand the conflict? |
Prezto is a zsh framework like oh-my-zsh. Sorry my bad, I forgot that not everyone knew what it is. Yes but the Prezto plugin already loads NVM, that is what I mean, so it is not needed to add it twice. The |
It should be checking if the Either way, the install script basically only downloads |
Makes sense. I will also open an issue on their end to address this. I think the purpose was to keep the zshrc (or whatever) clean and let the plugin handle it. Will do it the manual way, thank you! |
I'll leave this open; it's not an unreasonable request :-) it's just added complexity for what might be a very niche use case. |
The primary motivation here is that the main nvm install script has no option for skipping profile editing (nvm-sh/nvm#2076) and I want to keep `.zshrc` clean.
The primary motivation here is that the main nvm install script has no option for skipping profile editing (nvm-sh/nvm#2076) and I want to keep `.zshrc` clean.
Is it possible to prevent the install-script to not add NVM to path in my e.g. ~/.profile? I use a zsh prezto plugin (node) which already does this.
The text was updated successfully, but these errors were encountered: