It shows bash-style output (export...). I'm running rbenv 2.1.4.

rbenv init -

export PATH="/Users/burnettr/.rbenv/shims:${PATH}"
rbenv rehash 2>/dev/null
rbenv() {
  typeset command
  command="$1"
  if [ "$#" -gt 0 ]; then
    shift
  fi

  case "$command" in
  rehash|shell)
    eval `rbenv "sh-$command" "$@"`;;
  *)
    command rbenv "$command" "$@";;
  esac
}

rbenv version

2.1.4 (set by /Users/burnettr/.rbenv/version)

In config.fish after I add:

./bin/rbenv init - fish

...I get this error:

Last login: Wed Nov 19 15:09:32 on ttys001
/Users/burnettr/.config/fish/config.fish (line 17): ./bin/rbenv init - fish
                                                    ^
in . (source) call of file '/Users/burnettr/.config/fish/config.fish',
called on standard input,

Welcome to fish, the friendly interactive shell

On Wed, Nov 19, 2014 at 2:59 PM, ridiculous_fish <
corydo...@ridiculousfish.com> wrote:

> I wonder if you've got an older version of rbenv installed, that doesn't
> have fish shell support yet. That support is pretty new.
>
> What does `rbenv init -` output? How about if you run it as `./bin/rbenv
> init - fish`? What we're looking for is whether it shows bash-style output
> (export...) or fish-style (setenv...)
>
>
> On Nov 19, 2014, at 10:35 AM, Ryan Burnett <ryanjburn...@gmail.com> wrote:
>
> Hi corydoras!
>
> which rbenv
> /usr/local/bin/rbenv
>
> (The same path is returned whether or not I have "rbenv init - | source"
> in my config.fish file).
>
> echo $PATH
> /usr/local/bin /Users/burnettr/.node/bin /usr/bin /bin /usr/sbin /sbin
> /usr/local/git/bin
>
> Note that I used this config.fish command to move Homebrew's
> /usr/local/bin to the beginning of the $PATH (
> https://github.com/fish-shell/fish-shell/issues/1099).
>
> set -e PATH[(contains -i /usr/local/bin $PATH)] ^/dev/null; set PATH
> /usr/local/bin $PATH
>
> Does that help?
>
> Thank you - fish rocks!
>
> On Wed, Nov 19, 2014 at 1:12 PM, ridiculous_fish <
> corydo...@ridiculousfish.com> wrote:
>
>> Hi Ryan,
>>
>> The top of the error message was cut off, but it looks like rbenv is not
>> being found. What does `which rbenv` output, and what's in $PATH?
>>
>> On Nov 18, 2014, at 10:56 AM, Ryan Burnett <ryanjburn...@gmail.com>
>> wrote:
>>
>> Hi fish fanatics,
>>
>> I'm using rbenv. Using the regular ol' Terminal I have to add this to my
>> .bash_profile:
>>
>> eval "$(rbenv init -)"
>>
>> I've added the equivalent command to my ~/.config/fish/config.fish file:
>>
>> rbenv init - | source
>>
>> This worked in fish 2.1, however, I'm running 2.1.1 now and receive this
>> error:
>>
>> /Users/burnettr/.config/fish/config.fish (line 18): rbenv init - | source
>>                                                     ^
>> in . (source) call of file '/Users/burnettr/.config/fish/config.fish',
>> called on standard input,
>>
>> How can I add this rbenv init command to my config.fish file?
>>
>> P.S. I'm running fish 2.1.1 and OS X 10.9.4.
>>
>>
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk_______________________________________________
>> Fish-users mailing list
>> Fish-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/fish-users
>>
>>
>>
>
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&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