From 424febea002c291d79af76b1b507d92f28407311 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Thu, 11 Feb 2016 18:32:42 -0800 Subject: [PATCH] Add rvm install script and key. --- dotfiles/zshrc.d/rvm.zsh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dotfiles/zshrc.d/rvm.zsh b/dotfiles/zshrc.d/rvm.zsh index 0caba15..4514c29 100644 --- a/dotfiles/zshrc.d/rvm.zsh +++ b/dotfiles/zshrc.d/rvm.zsh @@ -1,4 +1,14 @@ # 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