Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bundler not found using fish shell w/ rbenv

In attempting to use Bundler with ruby 1.9.3p194 managed with rbenv in the fish shell I receive the error:

> gem install bundler
Fetching: bundler-1.5.1.gem (100%)

> bundle install
fish: Unknown command 'bundle'

Rbenv is being initialized in config.fish like so:

set -x PATH "$HOME/.rbenv/bin" $PATH
. (rbenv init - | psub)

And the output of rbenv init -:

> rbenv init -
setenv RBENV_SHELL fish
. '/Users/nifl/.rbenv/libexec/../completions/rbenv.fish'
rbenv rehash 2>/dev/null
function rbenv
  set command $argv[1]
  set -e argv[1]

  switch "$command"
  case rehash shell
    eval (rbenv "sh-$command" $argv)
  case '*'
    command rbenv "$command" $argv
  end
end

I don't have fish set up as the default shell and Bundler is working fine in Bash.

like image 928
Jack Frost Avatar asked Mar 22 '23 01:03

Jack Frost


1 Answers

Derp. Needed rehash after > gem install bundler

> rbenv rehash
like image 182
Jack Frost Avatar answered Mar 23 '23 15:03

Jack Frost