Files
skel/dotfiles/zshrc.d/rvm.zsh
2016-02-11 18:32:42 -08:00

15 lines
455 B
Bash

# Enable RVM if available
if [[ -s ${HOME}/.rvm/scripts/rvm ]] ; then
source ${HOME}/.rvm/scripts/rvm
else
function install_rvm {
export rvm_ignore_dotfiles=yes
pushd `mktemp -d`
curl -O https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer
curl -O https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer.asc
gpg --verify rvm-installer.asc && \
bash rvm-installer stable
popd
}
fi