- Регистрация
- 1 Мар 2015
- Сообщения
- 1,481
- Баллы
- 155
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
Prerequisite:
- is installed and ready to go;
- is installed.
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