Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Installing rbenv in a fish environment

Here we use Homebrew to install rbenv:

  1. brew update; and brew install rbenv ruby-build
  2. Add ~/.rbenv/shims to your PATH
  3. Include the contents of completions/rbenv.fish in your Fish config.
  4. Run rbenv install 2.2.2 and rbenv rehash
  5. Run rbenv global 2.2.2

Now you can run gem install bundler and bundle install within your Ruby project.

@tamlyn

This comment has been minimized.

Copy link

@tamlyn tamlyn commented Sep 14, 2017

Step two can be made more explicit set --universal fish_user_paths $fish_user_paths ~/.rbenv/shims

@karina-drummer

This comment has been minimized.

Copy link

@karina-drummer karina-drummer commented Sep 19, 2017

+1 for @tamlyn

@ihomway

This comment has been minimized.

Copy link

@ihomway ihomway commented Oct 8, 2019

+1 for @tamlyn

@mesqueeb

This comment has been minimized.

Copy link

@mesqueeb mesqueeb commented Oct 17, 2019

@tamlyn @pwenzel how do I

Include the contents of completions/rbenv.fish in your Fish config.

?

@bidah

This comment has been minimized.

Copy link

@bidah bidah commented Jan 18, 2020

I ended up using fisher plugin @rbenv/fish-rbenv

@nicky1525

This comment has been minimized.

Copy link

@nicky1525 nicky1525 commented Feb 17, 2020

+1 for @tamlyn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment