I have been using RVM just fine with fish. It has its own built-in fish support.

~Lewis

On Tue, Jul 23, 2013 at 4:40 AM, Stestagg <stest...@gmail.com> wrote:
> A very similar thread came up on May 13th with the title:
>
> [Fish-users] bash/zsh compatibility helper?
>
> There were two scripts attached to that thread, both of which should help
> here
>
> Thanks
>
> Steve
>
>
>
> On Tue, Jul 23, 2013 at 11:32 AM, Attila Györffy <attila.gyor...@gmail.com>
> wrote:
>>
>> Hi Andrew,
>>
>> As far as I understand the current problem is that `rbenv init -` is using
>> POSIX compatible syntax so when Rbenv gets sourced, fish currently cannot
>> deal with it. It’s got export, typeset, etc inside it so when fish would
>> want to eval it, it fails for obvious reasons.
>> Also, `rbenv shell` is a non working command at the moment for the same
>> reason. These would red to be extended so that rbenv would use fish
>> compatible commands (set instead of export, etc)
>>
>> I assume you must have set up your own scripts to work with Rbenv within
>> fish.
>>
>> Am I not right?
>>
>> — Attila
>>
>> On 22 Jul 2013, at 19:11, Andrew Kreps <andrew.kr...@gmail.com> wrote:
>>
>> I'd be interested in helping out, as I'm both a fish and rbenv user.  The
>> one question I have is, what functionality are you lacking?  I'm using rbenv
>> inside fish without any issues.
>>
>>
>> On Mon, Jul 22, 2013 at 9:09 AM, Attila Györffy <attila.gyor...@gmail.com>
>> wrote:
>>>
>>> Hi All,
>>>
>>> As an attempt to migrate my default shell from zsh to fish, I found
>>> myself not being able to use some of my favourite tools, mainly Rbenv. For
>>> some of you who may not be familiar with Rbenv, it is a sophisticated Ruby
>>> version manager for POSIX shells:
>>> https://github.com/sstephenson/rbenv
>>>
>>> Some people have been able to make Rbenv work with some hacks or
>>> workarounds by creating their own shell functions that mimic the original
>>> functionality of Rbenv, however the problem is that it might get out of sync
>>> with the original Rbenv implementation meaning that those hacks could
>>> potentially break any moment.
>>>
>>> I think as it is with Rbenv, fish’s popularity is highly dependant on the
>>> fish compatibility of the most commonly used tools. Rather than introducing
>>> external workarounds, I think we need to get the most common tools to
>>> support the new shell out of the box in order to raise awareness of fish
>>> itself. I understand that this sounds like a major pain in the a** and would
>>> involve lots and lots of work from the community but we could do one thing
>>> at a time.
>>>
>>> Having said that I decided to try adding fish shell compatibility to
>>> Rbenv. Unfortunately, turns out that I’m not a huge shell magician and I’m
>>> just getting familiar with the fish shell scripts. Having said that, I’m
>>> looking for contributors and guidelines towards doing a good job in adding
>>> fish compatible functionality to Rbenv.
>>>
>>> I’ve joined the discussion on Github that is related to the fish shell
>>> compatibility:
>>> https://github.com/sstephenson/rbenv/issues/195
>>>
>>> I did contact the authors of Rbenv and manages to squeeze out some
>>> information of them. Now, even though Rbenv is making use of bash or zsh
>>> (either one of them, really) those shells do not necessarily need to be your
>>> login shell, just need to be available on the system to make sure Rbenv
>>> operates as expected. Looks like the majority of the work would be to ensure
>>> that this particular script spits out fish compatible commands:
>>> https://github.com/sstephenson/rbenv/blob/master/libexec/rbenv-init
>>>
>>> Is there somebody who might be interested in helping out?
>>>
>>> Here’s what we’d need:
>>>
>>> * A fish shell compatible output of `rbenv init -` so that it can be
>>> evaluated by fish and the rbenv function could be loaded into the shell.
>>> * A shell script testing too that is compatible with fish. Rbenv issuing
>>> Bats for testing Bash scripts. Having tests for the fish compatible layer of
>>> Rbenv would be great.
>>>
>>> Let me know if somebody is eager to help out.
>>>
>>> Thanks,
>>>
>>> — Attila
>>>
>>> PS: If somebody knows of a useful and easy to understand resource online
>>> that would help in porting POSIX scripts to fish, then let mw know please.
>>> (Mostly for shell script noobs like myself)
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> See everything from the browser to the database with AppDynamics
>>> Get end-to-end visibility with application monitoring from AppDynamics
>>> Isolate bottlenecks and diagnose root cause in seconds.
>>> Start your free trial of AppDynamics Pro today!
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Fish-users mailing list
>>> Fish-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/fish-users
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> See everything from the browser to the database with AppDynamics
>> Get end-to-end visibility with application monitoring from AppDynamics
>> Isolate bottlenecks and diagnose root cause in seconds.
>> Start your free trial of AppDynamics Pro today!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Fish-users mailing list
>> Fish-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/fish-users
>>
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to