docs: shell-based instructions

Fix #8483
This commit is contained in:
Frank Taillandier 2020-12-04 11:17:01 +01:00 committed by GitHub
parent 2f1ba8e7be
commit f4a7eee57a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -37,7 +37,7 @@ echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.zshrc
# If you're using Bash # If you're using Bash
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile
# Unsure which shell you are using? Try # Unsure which shell you are using? Type
echo $SHELL echo $SHELL
``` ```
@ -106,14 +106,14 @@ ruby -v
Append your path file with the following, replacing the `X.X` with the first two digits of your Ruby version: Append your path file with the following, replacing the `X.X` with the first two digits of your Ruby version:
```bash ```bash
# MacOS Catalina (10.15) users and newer # If you're using Zsh
echo 'export PATH="$HOME/.gem/ruby/X.X.0/bin:$PATH"' >> ~/.zshenv echo 'export PATH="$HOME/.gem/ruby/X.X.0/bin:$PATH"' >> ~/.zshrc
# MacOS Mojave (10.14) users and older # If you're using Bash
echo 'export PATH="$HOME/.gem/ruby/X.X.0/bin:$PATH"' >> ~/.bash_profile echo 'export PATH="$HOME/.gem/ruby/X.X.0/bin:$PATH"' >> ~/.bash_profile
# Unsure which version of macOS you are using? Try # Unsure which shell you are using? Type
sw_vers -productVersion echo $SHELL
``` ```
Check that `GEM PATHS:` points to your home directory: Check that `GEM PATHS:` points to your home directory: