Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to set rbenv shims for Fish shell

📅 2015-Feb-13 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ fish, rbenv ⬩ 📚 Archive

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


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧