2

When using the recommanded way to setup rbenv, `eval "$(rbenv init -)", I get:

$(...) is not supported. In fish, please use '(rbenv)'.
~/.config/fish/config.fish (line 5): eval "$(rbenv init -)"
                                           ^
from sourcing file ~/.config/fish/config.fish
    called during startup

2 Answers 2

2

In your ~/.config/fish/config.fish you can add:

. (rbenv init - | source)

It requires the latest version of rbenv: brew install rbenv --HEAD.

1

For me it worked adding these lines to ~/.config/fish/config.fish:

set -x PATH $PATH <path/to/rbenv/bin>
rbenv init - | source

Using the latest version of rbenv.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .