How to set rbenv shims for Fish shell

It is pretty easy to setup rbenv for the Bash shell as described here.

To be able to use rbenv, Ruby and its other tools from the Fish shell, a similar set of commands need to added to ~/.config/fish/config.fish:

set PATH $HOME/.rbenv/bin $PATH
set PATH $HOME/.rbenv/shims $PATH
rbenv rehash >/dev/null ^&1

Tried with: rbenv 0.4.0, Fish 2.0.0 and Ubuntu 14.04

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s