Jac*_*ost 4 bundler fish rbenv
在尝试使用Bundler与在fish shell中使用rbenv管理的ruby 1.9.3p194时,我收到错误:
> gem install bundler
Fetching: bundler-1.5.1.gem (100%)
> bundle install
fish: Unknown command 'bundle'
Run Code Online (Sandbox Code Playgroud)
Rbenv正config.fish
如此初始化:
set -x PATH "$HOME/.rbenv/bin" $PATH
. (rbenv init - | psub)
Run Code Online (Sandbox Code Playgroud)
并输出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
Run Code Online (Sandbox Code Playgroud)
我没有将fish设置为默认shell,而Bundler在Bash中运行正常.
归档时间: |
|
查看次数: |
1616 次 |
最近记录: |