简体   繁体   中英

RVM in Elementary Luna OS

I get the error "RVM is not a function" when trying to use it in Elementary Luna OS' terminal. There is an explanation here http://rvm.io/integration/gnome-terminal , but Elementary OS'terminal has no setting menu(!) -- so how can this be fixed in this OS?

Just open a terminal and paste this:

echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bash_profile

then execute this:

source ~/.bash_profile

and it should work

You should be able to approximate that setup by appending this to your ~/.bashrc file (rvm.sh might not be the right name, but it's something like that). You may have to log in and out for it to take effect.

source /etc/profile.d/rvm.sh

Or instead append this, which should include everything under /etc/profile.d/. It should be very similar to checking the setting in gnome-terminal:

source /etc/profile

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM