-
-
Notifications
You must be signed in to change notification settings - Fork 757
Implement .nrc / .node-version #150
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
Comments
I'd love to see this as well. It's a pretty big project, though. |
hmm kinda neat, it could just check package.json, but at the same time it's not uncommon to have multiple apps running at the same time. I'd just add |
@visionmedia I could be mistaken, but I think RVM switched to using They may not have added that for that reason, but it still seems like a good reason to support something more specific like |
@wayneeseguin @mpapis @cxreg If one were going to build another tool that hooked into An quick example along the lines of this, but making it so this doesn't override your tools would be great: cd() {
echo "before";
builtin cd "$@";
echo "after";
} |
more like: function cd()
{
typeset __result=0
run_before "$@" || true
builtin cd "$@" || __result=$?
run_after "$@" || true
return $__result
} |
as for compatibility with other tools - let me know when you have your code - I can add support for it in RVM and help you make it work with RVM. |
@mpapis is there a way that we could standardize the compatibility between tools so that each tool doesn't need to know about another? What's the point of using I understand the basic premise of what's happening here — overriding |
as for standardization, I was thinking on implementing an array with hooks like ZSH does ... it's possible, but will require some time(maybe not long, but I have other task earlier on the list), open a ticket for RVM if you would like me to implement it. |
Hi all, I started a project to try to tackle this issue. Pull requests welcome! |
@wbyoung as much as I would liked to see it happen in current state environment switchers, it's quite complicated problem - I do not see it, but maybe @postmodern has some experience with minimizing efforts just for ruby? |
@mpapis sorry, either I miss-communicated or maybe got you mixed up while commenting on multiple issues. I was referring just to trying to solve the issue of For others reading this issue, though, I did open a ticket to discuss how to best get integration to happen with RVM as @mpapis suggested earlier. |
A tool called RVM for managing Rubies has a feature called .rvmrc. A .rvmrc file specifying which Ruby version to use placed in a project directory will trigger automagic switching of the Ruby version when cd'ing into that directory. This make life easier by eliminating the need to manually switch the Ruby version.
It would be nice to have a similar functionality.
More info about .rvmrc / rvm workflow: http://rvm.io/workflow/projects
The text was updated successfully, but these errors were encountered: