Skip to content

Instantly share code, notes, and snippets.

@pwenzel
Last active September 13, 2022 01:50
Show Gist options
  • Save pwenzel/59502558b27c14a20030 to your computer and use it in GitHub Desktop.
Save pwenzel/59502558b27c14a20030 to your computer and use it in GitHub Desktop.
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
Copy link

tamlyn commented Sep 14, 2017

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

@carina-akaia
Copy link

carina-akaia commented Sep 19, 2017

+1 for @tamlyn

@ihomway
Copy link

ihomway commented Oct 8, 2019

+1 for @tamlyn

@mesqueeb
Copy link

mesqueeb commented Oct 17, 2019

@tamlyn @pwenzel how do I

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

?

@bidah
Copy link

bidah commented Jan 18, 2020

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

@nicky1525
Copy link

+1 for @tamlyn

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