Skip to content

Instantly share code, notes, and snippets.

@blacktm
Last active December 26, 2023 20:14
Show Gist options
  • Save blacktm/9191560 to your computer and use it in GitHub Desktop.
Save blacktm/9191560 to your computer and use it in GitHub Desktop.
A Bash script to install Ruby on macOS
#!/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