2

I've recently installed ruby using this tutorial :

http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/

However every time I turn off my computer and open terminal. I need to type . ~/.bash_profile so I can do bundle install or anything else ruby related.

I'm using ubuntu 12.04, has anyone encountered similar issue?

Andrew Grimm
  • 78,473
  • 57
  • 200
  • 338
London
  • 14,986
  • 35
  • 106
  • 147

3 Answers3

1

In addition to what McGar said, you want to make sure that you have 'Run command as a login shell" checked in your terminal window.

For instance, in Fedora 19 (I'm sure it'd be the same in Ubuntu 12.04) go to: Edit -> Profile Preferences -> Title and Command, and then check 'Run command as login shell'. I'd also recommend close/open all open terminals after making that change.

grenierm5
  • 186
  • 4
  • 14
0

Do you have something like following lines in your .bashrc:

PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting

#This loads rvm
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
McGar
  • 205
  • 1
  • 10
0

check this tutorial of enabling login shell => http://rvm.io/integration/gnome-terminal (not copy pasting as instruction on the site might get updated / improved).

mpapis
  • 52,729
  • 14
  • 121
  • 158