# Question about RVM installation; where to find .bashrc and/or .bash\_profile files?

**URL:** <https://www.ruby-forum.com/t/question-about-rvm-installation-where-to-find-bashrc-and-or-bash-profile-files/193686>\
**Category:** Rails\
**Created:** [August 22, 2010, 11:15am UTC](https://www.ruby-forum.com/t/question-about-rvm-installation-where-to-find-bashrc-and-or-bash-profile-files/193686 "2010-08-22T11:15:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dangermoose](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e79b87/32.png) [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Post date:** [August 22, 2010, 11:15am UTC](https://www.ruby-forum.com/t/question-about-rvm-installation-where-to-find-bashrc-and-or-bash-profile-files/193686/1 "2010-08-22T11:15:48Z")

</div>

Hi–  
Have just installed downloaded and installed RVM from Github and got  
this message after download:

You must now finish the install manually:

1. Place the folowing line at the end of your shell’s loading  
files(.bashrc or .bash\_profile for bash and .zshrc for zsh), after all  
path/variable settings:  
[[-s $HOME/.rvm/scripts/rvm]] && source $HOME/.rvm/scripts/rvm  
Please note that this must only occur once - so, you only need to  
add it the first time you install rvm.
2. Ensure that there is no ‘return’ from inside the .bashrc file.  
(otherwise rvm will be prevented from working properly).  
This means that if you see ‘[-z “$PS1”] && return’ then you must  
change this line to:  
if [[-n “$PS1”]] ; then  
… original content that was below the && return line …  
fi # \<= be sure to close the if.  
#EOF .bashrc  
Be absolutely _sure_ to REMOVE the ‘&& return’.  
If you wish to DRY up your config you can ‘source ~/.bashrc’ at the  
bottom of your .bash\_profile.  
placing all non-interactive items in the .bashrc, including the  
‘source’ line above
3. Then CLOSE THIS SHELL and open a new one in order to use rvm.

Installation of RVM to /Users/pdenlinger/.rvm/ is complete.

I am using Snow Leopard, and would like to know where I can find  
the .bashrc and/or .bash\_profile files. Which directory are they in?  
Tried to find them but had no luck.

Thank you.

---

<div class="post-metadata">

**Author:** ![dangermoose](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e79b87/32.png) [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Post date:** [August 22, 2010, 11:35am UTC](https://www.ruby-forum.com/t/question-about-rvm-installation-where-to-find-bashrc-and-or-bash-profile-files/193686/2 "2010-08-22T11:35:07Z")

</div>

On 22 Aug 2010, at 10:14, pauld [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am using Snow Leopard, and would like to know where I can find  
> the .bashrc and/or .bash\_profile files. Which directory are they in?  
> Tried to find them but had no luck.

They live in your home directory, e.g.

/Users/pdenlinger/.bashrc

If you don’t already have them then you can just create them yourself.

Chris
