Last active
December 26, 2023 20:14
-
-
Save blacktm/9191560 to your computer and use it in GitHub Desktop.
A Bash script to install Ruby on macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
RUBY_VERSION=3.3.0 | |
brew update | |
brew install rbenv ruby-build | |
read -d '' String <<"EOF" | |
# rbenv | |
eval "$(rbenv init -)" | |
EOF | |
echo -e "\n${String}\n" >> ~/.zshrc | |
rbenv install $RUBY_VERSION --verbose | |
rbenv global $RUBY_VERSION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment