-
-
Notifications
You must be signed in to change notification settings - Fork 676
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
feature request: automatic nvm use when entering directories with .nvmrc #371
Comments
Thank you for your suggestion! This hears like useful.
Do you intend to make this behavior turned on by default? If it would be an opt-in feature (which is disabled by default but can be enabled by a user option), I think I will accept it after reviews and adjustments. But if it would be an opt-out feature (which would be enabled by default when the existing |
Thanks for the quick response! I found myself on the opposite side, I thought nvm itself or the nvm plugin already took care of the automatic switching so I don't have to always remember to switch from the default nodejs version to the one needed by the current project. Is it enough to use an environment variable (for example As for the |
Thank you for your response!
Nice, this is important information!
Yes, if we would make it a configuration option of the But taking into consideration the fact that oh-my-zsh has a separate plugin for that, I now think we should follow it so that people can easily find the corresponding feature in oh-my-bash. If we make it a separate plugin, the user option to turn it on is actually the
I repeat that I'm unfamiliar with (Without knowing the details of |
I should have searched the official nvm plugin first! It also has the (opt-in) feature built-in.
sorry, I should have specified better... Yes, it only contains a string with the version and it is used only for that, no other configuration.
This is valuable information that can be added to |
Oh, OK. That's nice. Then, let us go in this direction.
Thank you for the confirmation!
Thank you for the suggestion! Actually, the convention of |
* plugins/nvm: Add nvmrc autoload option Fixes ohmybash#371 * plugins/nvm: Fix docs, clean up code, and add license Co-authored-by: Koichi Murase <[email protected]> * plugins/xterm: Fix xterm plugin to make it work (ohmybash#378) * fixes in xterm plugin to make it work * add missing operator and default xterm title Co-authored-by: Andrea Ghensi <[email protected]> Co-authored-by: Koichi Murase <[email protected]> Co-authored-by: thetombla <[email protected]>
Hi, thanks a lot for this great project! I started using a few days ago, and I really like the fact that I can get most of the oh-my-zsh feeling without switching the default shell (I ditched Mac OS a long time ago).
I'm using the nvm plugin, and I would like to have the automatic switch of nodejs version when I cd to a directory that has a
.nvmrc
file in it.I solved this thanks to this great answer from stackoverflow, adding the following at the end of my
.bashrc
could this be embedded in the nvm plugin?
would you accept a PR with that?
The text was updated successfully, but these errors were encountered: