Fish Shell で rbenv で管理されている ruby 1.9.3p194 で Bundler を使用しようとすると、次のエラーが表示されます。
> 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
私は魚をデフォルトのシェルとして設定しておらず、Bundler は Bash で正常に動作しています。