Bundler not found using fish shell w / rbenv

When I try to use the Bundler with ruby ​​1.9.3p194 managed with rbenv in a fish shell, I get an error:

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

> bundle install
fish: Unknown command 'bundle'

Rbenv is initialized config.fishas follows:

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

And the conclusion 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 installed as the default shell, and the Bundler works fine in Bash.

+4
source share
2 answers

Derp. The need for paraphrasing after> gem install bundler

> rbenv rehash
+7
source

Another problem that may occur when using rbenv-communal-gems . jruby does not like communication, he wants this:

rbenv sequester jruby-1.7.12

This allows you to restart

gem install bundler
rbenv rehash

bundle.

0

All Articles