On 02/09/2009, at 10:59 AM, Bodaniel Jeanes wrote:
> Clifford, I read your idea 3 times and I am still not sure how you  
> mean. What would the symlinks control? Would that just be symlinking  
> ruby etc to the appropriate version?

Yes, basically - and similarly for variables like RUBYLIB, RUPYOPT, etc.
If they must be set, let them be set to where symlinks can redirect  
them.

So for example, have it create ~/.rvm/bin and require that contain the  
first Ruby
in your path, and create ~.rvm/lib and require RUBYLIB to be pointed  
there, etc.

> I've already got RVM command running under fish by doing the  
> following as a fish bin file:

Yes, that works, but it's a painful solution, and not a fish one -  
you're just
piggy-backing on the bash solution.

Clifford Heath (not a Fish user)

>
> #!/bin/bash
> . ~/.rvm/scripts/rvm
> rvm $@
>
> It can't change the ENV vars for fish though.
>
> On Wed, Sep 2, 2009 at 10:53 AM, Clifford Heath <[email protected] 
> > wrote:
>
> There is an alternative. RVM is a bash function, so it can modify the
> path
> in your shell. Instead, it would be possible to implement it by having
> it
> modify symlinks to places under its control (which must be in your
> path),
> and complaining if any other environment variables are set that would
> conflict.
>
> This was how I initially thought it must be implemented. It would work
> with any shell.
>
> Clifford Heath.
>
> On 02/09/2009, at 10:35 AM, Ben Schwarz wrote:
>
> >
> > RVM is written almost entirely in bash nic.
> > Unless you'd like to write something to convert it on the fly?  :)
> >
> >
> > On Sep 2, 5:01 am, Dr Nic Williams <[email protected]> wrote:
> >> Hey Bo, can a "port" be avoided and make RVM "just work" across a
> >> subset of
> >> shells?
> >>
> >>
> >>
> >>
> >>
> >> On Tue, Sep 1, 2009 at 2:03 PM, Bodaniel Jeanes <[email protected]>
> >> wrote:
> >>> I love Fish. I really really love it. But RVM just came out and
> >>> looks so
> >>> damn cool but doesn't work with Fish. I am starting a port this
> >>> weekend.
> >>> Anybody want to join in? Especially people in Brisbane, this will
> >>> be my
> >>> ActionHack project but I'd love some extra help.
> >>> Bo
> >>
> >>> On Tue, Sep 1, 2009 at 11:06 AM, Mark Ryall <[email protected]>
> >>> wrote:
> >>
> >>>> ah - *slaps head* - thanks
> >>
> >>>> On Tue, Sep 1, 2009 at 10:02 AM, Chris Lloyd
> >>>> <[email protected]
> >>>>> wrote:
> >>
> >>>>> 2009/9/1 Mark Ryall <[email protected]>
> >>
> >>>>>> The other thing i'd really like to be able to do is to execute
> >>>>>> something
> >>>>>> to populate an environment variable
> >>
> >>>>> Use ().
> >>>>> set -x FOO (cat foo.pid)
> >>
> >>>>>  Chris
> >>
> >>>>> --
> >>>>> chrislloyd.com.au
> >>
> >> --
> >> Dr Nic Williams
> >> Mocra - Premier iPhone and Ruby on Rails Consultants
> >> w -http://mocra.com
> >> twitter - @drnic
> >> skype - nicwilliams
> >> e - [email protected]
> >> p - +61 412 002 126 or +61 7 3102 3237
> > >
>
>
>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to