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