15 lines
312 B
Plaintext
15 lines
312 B
Plaintext
|
# 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
|
||
|
}
|
||
|
|
||
|
if [ -d "${HOME}/.rbenv" ]; then
|
||
|
eval "$(${HOME}/.rbenv/bin/rbenv init - --no-rehash bash)"
|
||
|
fi
|