dotfiles/bashrc.d/ruby.bashrc
Gered c7e6e5c331 include ruby-build plugin when installing rbenv
rbenv is kind of useless without this, IMHO ...
2025-01-31 12:10:35 -05:00

16 lines
397 B
Plaintext
Executable file

# https://github.com/rbenv/rbenv
function install_rbenv {
if command -v rbenv &> /dev/null; then
echo "Rbenv is already installed."
return 1
fi
git clone https://github.com/rbenv/rbenv.git ${HOME}/.rbenv
git clone https://github.com/rbenv/ruby-build.git ${HOME}/.rbenv/plugins/ruby-build
}
if [ -d "${HOME}/.rbenv" ]; then
eval "$(${HOME}/.rbenv/bin/rbenv init - --no-rehash bash)"
fi