简体   繁体   中英

how to setup bashrc bash_profile

Hi I am newbie to pathvariables. I get the rvm path as /local/rvm/ when I do locate rvm . So I assume that its in the /local folder.

But when I do the $ rvm It complaints about the command not found. Can you please tell me what the path variable should be if my rvm is installed in /local/ location.

my .bash_profile looks something like this:

[[ -s "$HOME/local/rvm/scripts/rvm" ]] && source "$HOME/local/rvm/scripts/rvm" # Load RVM into a shell session *as a function*

Thanks

EDIT:

It doesn't look like this is a path issue. rvm is a script that loads a function, and so it does not need to be in your path.

You need to find where the actual rvm/scripts folder resides. If it really has ended up in a root-level /local folder, then you need to edit that .bash_profile line to remove the $HOME part of both lines...

So I would suggest figuring out where that file actually exists. I think the locate command is finding the rvm directory and not the command itself...

Does ls /local/rvm/scripts/ show you the contents of a folder?

On the rvm page , it shows it as being installed in a .rvm directory of your home directory...

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