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

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

. (rbenv init - | source)

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


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.