From 568aee098ea4feff8bf4caac27740532ad2c13d3 Mon Sep 17 00:00:00 2001 From: Jason Karns Date: Mon, 27 Feb 2023 09:41:39 -0500 Subject: [PATCH 1/2] Make individual commands copy-able GitHub's markdown renderer makes code blocks copyable, but it's the _entire_ codeblock that is copied. Since users would want to only run one of the various commands, they need to each be their own codeblock for the copy button to be useful. --- README.md | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 3c3da37..d2a3c29 100644 --- a/README.md +++ b/README.md @@ -9,13 +9,17 @@ install/upgrade`. Otherwise, rbenv is installed under `~/.rbenv`. Additionally, [ruby-build](https://github.com/rbenv/ruby-build#readme) is also installed if `rbenv install` is not already available. -```sh -# with curl -curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash +with curl: -# alternatively, with wget -wget -q https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer -O- | bash -``` + ```sh + curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash + ``` + +alternatively, with wget: + + ```sh + wget -q https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer -O- | bash + ``` The installer script is meant for casual use on your own development machine. For automating installation across machines it's better to _avoid_ using this @@ -28,10 +32,14 @@ you are installing rbenv there, you are likely doing something wrong. You can verify the state of your rbenv installation with: -```sh -# with curl -curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-doctor | bash +with curl: + + ```sh + curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-doctor | bash + ``` + +alternatively, with wget: -# alternatively, with wget -wget -q https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-doctor -O- | bash -``` + ```sh + wget -q https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-doctor -O- | bash + ``` From 124235e33333fe602f6198a6e2952d4707a661e3 Mon Sep 17 00:00:00 2001 From: Jason Karns Date: Mon, 27 Feb 2023 09:47:02 -0500 Subject: [PATCH 2/2] Blockquote as 'note' --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d2a3c29..752c7fa 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ alternatively, with wget: wget -q https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer -O- | bash ``` +> **Note** The installer script is meant for casual use on your own development machine. For automating installation across machines it's better to _avoid_ using this script in favor of fine-tuning rbenv & ruby-build installation manually. Some