summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbt <bt@web>2023-12-03 08:41:55 -0500
committerIkiWiki <ikiwiki.info>2023-12-03 08:41:55 -0500
commit1b3d01f806dd4fc9261ba78e0d3edc5f266cc14e (patch)
treeb28a8fcebddd3340f93cd03ac908e39825765069
parent92db41d3ba96d6808f885142ef781386a5898d89 (diff)
-rw-r--r--posts/rvm.md38
1 files changed, 19 insertions, 19 deletions
diff --git a/posts/rvm.md b/posts/rvm.md
index 7d5fc21..d412a1d 100644
--- a/posts/rvm.md
+++ b/posts/rvm.md
@@ -9,31 +9,31 @@ So this post is more or less a helpful document for my future self. If it happen
Make sure you have the basic packages first:
-```
-apk update
-apk add curl gcc gnupg gpg dirmngr procps musl-dev linux-headers zlib zlib-dev openssl openssl-dev libssl1.1
-```
+
+ apk update
+ apk add curl gcc gnupg gpg dirmngr procps musl-dev linux-headers zlib zlib-dev openssl openssl-dev libssl1.1
+
Next download the latest `stable` version of `rvm` from Github, unpack it, place it in the proper user directory (~/.rvm) and install any required libs:
-```
-curl -sSL https://github.com/rvm/rvm/tarball/stable -o rvm-stable.tar.gz
-echo 'export rvm_prefix="$HOME"' > ~/.rvmrc
-echo 'export rvm_path="$HOME/.rvm"' >> ~/.rvmrc
-mkdir rvm && cd rvm
-tar --strip-components=1 -xzf ../rvm-stable.tar.gz
-./install --auto-dotfiles --autolibs=0
-```
+
+ curl -sSL https://github.com/rvm/rvm/tarball/stable -o rvm-stable.tar.gz
+ echo 'export rvm_prefix="$HOME"' > ~/.rvmrc
+ echo 'export rvm_path="$HOME/.rvm"' >> ~/.rvmrc
+ mkdir rvm && cd rvm
+ tar --strip-components=1 -xzf ../rvm-stable.tar.gz
+ ./install --auto-dotfiles --autolibs=0
+
Now we can remove everything and properly link to `rvm`:
-```
-cd ../ && rm -rf rvm-stable stable.tar.gz rvm
-source ~/.rvm/scripts/rvm
-```
+
+ cd ../ && rm -rf rvm-stable stable.tar.gz rvm
+ source ~/.rvm/scripts/rvm
+
Now you can freely install any version of Ruby that you desire!
-```
-rvm install ruby-X.X.X
-```
+
+ rvm install ruby-X.X.X
+