diff --git a/bash/profile.sh b/bash/profile.sh index 6b13261..8ad6377 100644 --- a/bash/profile.sh +++ b/bash/profile.sh @@ -1,8 +1,9 @@ # Add bin to path export PATH=~/bin:$PATH -# rvm -[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM +# chruby +source /usr/local/share/chruby/chruby.sh +chruby ruby-2.0 # Case-insensitive globbing (used in pathname expansion) shopt -s nocaseglob diff --git a/bin/install-software b/bin/install-software index b5706c1..a188a65 100755 --- a/bin/install-software +++ b/bin/install-software @@ -14,11 +14,10 @@ brew install wget brew install node brew install openssl brew install ssh-copy-id +brew install chruby +brew install ruby-install -if ! hash rvm 2>/dev/null; then - \curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled - source $HOME/.rvm/scripts/rvm -fi +ruby-install ruby gem install bundler gem install rails diff --git a/bin/update-software b/bin/update-software index 6c90e0a..12b9416 100755 --- a/bin/update-software +++ b/bin/update-software @@ -4,7 +4,4 @@ brew update brew upgrade brew cleanup -\curl -L https://get.rvm.io | bash -s stable -rvm reload - gem update \ No newline at end of file