Skip to content

Instantly share code, notes, and snippets.

@pwenzel
Last active September 13, 2022 01:50
Show Gist options
  • Select an option

  • Save pwenzel/59502558b27c14a20030 to your computer and use it in GitHub Desktop.

Select an option

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

tamlyn commented Sep 14, 2017

Copy link
Copy Markdown

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

@akaia-shadowfox

akaia-shadowfox commented Sep 19, 2017

Copy link
Copy Markdown

+1 for @tamlyn

@ihomway

ihomway commented Oct 8, 2019

Copy link
Copy Markdown

+1 for @tamlyn

@mesqueeb

mesqueeb commented Oct 17, 2019

Copy link
Copy Markdown

@tamlyn @pwenzel how do I

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

?

@bidah

bidah commented Jan 18, 2020

Copy link
Copy Markdown

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

@nicky1525

Copy link
Copy Markdown

+1 for @tamlyn

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