-
Notifications
You must be signed in to change notification settings - Fork 5
/
ruby_env.sh
28 lines (24 loc) · 935 Bytes
/
ruby_env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# install rvm and ruby
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc
echo "================================================================="
echo "================================================================="
echo
echo "== Please run following command to finish install rvm and ruby =="
echo "============================ Start =============================="
echo
echo "Run $ source ~/.bashrc"
echo
echo "Run $ rvm requirements"
echo
echo "Run $ rvm install 2.3.1"
echo
echo "Run $ rvm use 2.3.1 --default"
echo
echo "Run $ gem install bundler"
echo
echo "============================= End ==============================="
echo "================================================================="
echo "================================================================="