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.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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