2024-09-14 17:05:53 -04:00
|
|
|
# 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
|
2025-01-31 12:10:24 -05:00
|
|
|
git clone https://github.com/rbenv/ruby-build.git ${HOME}/.rbenv/plugins/ruby-build
|
2024-09-14 17:05:53 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
if [ -d "${HOME}/.rbenv" ]; then
|
|
|
|
eval "$(${HOME}/.rbenv/bin/rbenv init - --no-rehash bash)"
|
|
|
|
fi
|