是否可以在 shell 脚本中加载 rvm 。任何人都可以举一个例子。当我尝试 shell 脚本时。我正在使用ubuntu系统
#!/bin/bash
rvm use 1.9.3
它给了我错误
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.