在尝试使用Bundler与在fish shell中使用rbenv管理的ruby 1.9.3p194时,我收到错误:
> gem install bundler Fetching: bundler-1.5.1.gem (100%) > bundle install fish: Unknown command 'bundle'
Rbenv正config.fish
如此初始化:
set -x PATH "$HOME/.rbenv/bin" $PATH . (rbenv init - | psub)
并输出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
我没有将fish设置为默认shell,而Bundler在Bash中运行正常.
DERP.之后需要重新开始> gem install bundler
> rbenv rehash