Still working on a reinstall, here is my script to setup Ruby on macOS.
Prerequisite:
The script to pick a version of Ruby to install and actually installing it is:
picked_version=$(rbenv install -l | gum choose) install_ruby() { rbenv install --skip-existing "$picked_version" rbenv global "$picked_version" } gum confirm "Install Ruby version $picked_version?" && install_ruby
Top comments (0)