Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just installed Ruby and Rails stuff on my machine, and start to learn.

But every time I close the Terminal and re-open it, I have to re-type the command . ~/.bash_profile in order to run Rails commands properly...

How can i fix this, to close and re-open the Terminal, ready to develop my Rails apps?

share|improve this question
What OS are you on? – slhck Mar 11 '13 at 11:13
.bash_profile is read when you login and .bashrc is read when you start a new terminal. Have you tried to restart the system? Is bash your default terminal? – Kride Mar 11 '13 at 13:20
i'm running mint linux, debian-like system. – sonnuforevis Mar 12 '13 at 17:49
up vote 0 down vote accepted

Open .bash_profile and you should see these 2 lines:

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

Copy these lines and append them to your .bashrc file and you're done!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.