是否可以在shell脚本中加载rvm?有人可以给出一个例子吗?当我尝试使用ubuntu系统的shell脚本时。
#!/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.