Getting fish, rbenv & homebrew playing nice together
Installing fish shell
brew install fish
Adding homebrew and rbenv to fish configuration file ~/.config/fish/config.fish
### PATH ###
set default_path /usr/bin /usr/sbin /bin /sbin
set homebrew /usr/local/bin /usr/local/sbin
set brew_rbenv "/usr/local/var/rbenv/shims"
set -gx PATH $homebrew $brew_rbenv $default_path
### Ruby (rbenv) ###
set -gx RBENV_ROOT /usr/local/var/rbenv
Reload the configuration and voilà
Written by Rahul Trikha
Related protips
4 Responses

This worked for me. Thanks : )
over 1 year ago
·

Glad I can help @alanandrade
over 1 year ago
·

typo in heading: nice toge'ht'er
over 1 year ago
·

Thanks @shaneholloman, I have updated the title
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#