Skip to content

Commit eb4de5a

Browse files
committed
Changes the way rvm is loaded after the installation
1 parent d13a2a3 commit eb4de5a

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

rails-install-osx.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ brew update
66

77
echo "Installs RVM (Ruby Version Manager) for handling Ruby installation"
88
curl -L get.rvm.io | bash -s stable
9-
echo "
10-
# RVM
11-
[[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm'" >> ~/.bash_profile
12-
source ~/.bash_profile
9+
source ~/.rvm/scripts/rvm
1310

1411
echo "Install Ruby"
1512
rvm install 1.9.3-p125

rails-install-ubuntu.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,7 @@ sudo apt-get install imagemagick --fix-missing -y
1111

1212
echo "Installs RVM (Ruby Version Manager) for handling Ruby installation"
1313
curl -L get.rvm.io | bash -s stable
14-
# RVM integration with bash in OSX is like
15-
# echo "
16-
# [[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm'" >> ~/.bash_profile
17-
# source ~/.bash_profile
18-
19-
# RVM integration with bash in Ubuntu is like
20-
# echo "
21-
# [[ -s '$HOME/.rvm/scripts/rvm' ]] && source '$HOME/.rvm/scripts/rvm'" >> ~/.bashrc
22-
# But is done automagically by rvm itself
23-
24-
source ~/.bashrc
14+
source ~/.rvm/scripts/rvm
2515

2616
echo "Installs Ruby"
2717
rvm install 1.9.3-p125

0 commit comments

Comments
 (0)