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

symlinks for paths which reflect the current rvm/gemset in use? #2935

Closed
wolfspyre opened this Issue Jul 5, 2014 · 3 comments

Comments

Projects
None yet
2 participants
@wolfspyre

wolfspyre commented Jul 5, 2014

I thought it might be semi-beneficial to have symlinks in .rvm/bin, .rvm/rubies, .rvm/gems, .rvm/gemsets, etc for the "current" gemset/rvm in use. This would permit one to point external scripts/tools at 'current' and the external script would be a little more aware of the environment being worked on. Thoughts?

@mpapis

This comment has been minimized.

Member

mpapis commented Jul 5, 2014

why not use just your own alias or use default? the problem with current is it is session dependent and you can have multiple sessions open which one of them should control current?

@wolfspyre

This comment has been minimized.

wolfspyre commented Jul 5, 2014

One can have multiple sessions open, true. I know very few people who are
truly capable of working on multiple things at once. The only place I
personally experience concurrent operations is spinning up a vagrant
instance and working on different code while the vagrant system is building
itself. I agree that there are many other situations wherein concurrent
operations could occur. I don't think they're the usual state one operates
in. Perhaps I'm mistaken, but the usual state is that I usually experience
is working on a specific thing at a specific time. I thought having
external tools able to have awareness of that specific session might be a
good thing.

On Sat, Jul 5, 2014 at 2:02 PM, Michal Papis notifications@github.com
wrote:

why not use just your own alias or use default? the problem with current
is it is session dependent and you can have multiple sessions open which
one of them should control current?


Reply to this email directly or view it on GitHub
#2935 (comment).

@mpapis mpapis closed this in f30f6ac Jul 5, 2014

@mpapis

This comment has been minimized.

Member

mpapis commented Jul 5, 2014

this should do it:

rvm get head
chmod +x $rvm_path/hooks/after_use_current

@mpapis mpapis added this to the rvm 1.25 milestone Jul 5, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment