$ shopt -q login_shell && echo 'Login shell' || echo 'Not login shell'
Login shell
$ type rvm | head -n 1
rvm is a function
-bash: type: write error: Broken pipe
然而:
$ rvm --default use 1.9.2
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.
我删除了 ~/.rvm/ 并尝试使用再次安装,curl -L https://get.rvm.io | bash -s stable --auto
但这没有帮助。这是一个远程 Ubuntu 13.04,我已经 ssh 进入,使用密钥进行身份验证。有什么建议吗?