When I open terminal I see:
Last login: Sun Aug 26 15:33:57 on ttys001
Using /Users/me/.rvm/gems/ruby-1.9.3-p125
Running /Users/me/.rvm/hooks/after_use
Using /Users/me/.rvm/gems/ruby-1.9.3-p194
ruRunning /Users/me/.rvm/hooks/after_use
me-MacBook:site me$ ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
Where I want ruby 1.9.3. If I then type:
rvm use 1.9.3 --default
I get the below:
$ rvm use 1.9.3 --default
Using /Users/me/.rvm/gems/ruby-1.9.3-p194
Running /Users/me/.rvm/hooks/after_use
This allows me to use rails but when I reopen terminal I have to do this every single time. Is there a way to make this the default setting? I added it to my bash_profile but that does not seem to work. Here is my bash profile:
# Required for Ruby upgrade to 1.9.3
export RUBYOPT=-r openssl
export PATH=${PATH}:/opt/local/bin
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
# Sets the RVM profile on terminal load
rvm use ruby-1.9.3-p125
rvm use 1.9.3 --default
# RVM Requirements
export CC="/usr/local/bin/gcc-4.2"
export CFLAGS="-O2 -arch x86_64"
export LDFLAGS="-L/opt/local/lib"
export CPPFLAGS="-I/opt/local/include"
export ARCHFLAGS="-arch i386"
# Postgresql
export PATH=/usr/bin:$PATH
Any help? Thanks