Skip to content

Commit 787d875

Browse files
authored
Add instructions to install RVM in MacOS
From High Sierra to Mojave
1 parent ce886f9 commit 787d875

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

macos/install_rvm.sh

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
brew install gpg
4+
5+
gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
6+
\curl -sSL https://get.rvm.io | bash -s stable
7+
8+
echo "Sourcing RVM and reloading shell"
9+
. /Users/$(whoami)/.rvm/scripts/rvm
10+
11+
echo "RVM requirements"
12+
rvm requirements
13+
14+
echo "Installing ruby-2.5.3"
15+
rvm install ruby-2.5.3
16+
17+
echo "Setting ruby-2.5.3 as default"
18+
rvm --default use ruby-2.5.3
19+
20+
echo "Install bundler"
21+
gem install bundler --no-document
22+
23+
# This wouldn't work because it is executed in a different
24+
# shell which gets invoked inside the script and not the
25+
# terminal window
26+
echo "...again"
27+
. /Users/$(whoami)/.rvm/scripts/rvm

0 commit comments

Comments
 (0)