Fix bash_profile to Develop Ruby on Rails Apps

0

1

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?

sonnuforevis

Posted 2013-03-11T11:11:49.013

Reputation: 113

What OS are you on? – slhck – 2013-03-11T11:13:33.047

.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 – 2013-03-11T13:20:31.233

i'm running mint linux, debian-like system. – sonnuforevis – 2013-03-12T17:49:16.380

Answers

0

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!

Ishaan

Posted 2013-03-11T11:11:49.013

Reputation: 16