laughing-hipster/plugins/220-ruby.sh

17 lines
547 B
Bash

#!/bin/sh
export RVM_HOME="${HOME}/.rvm"
if ! [[ -d "${RVM_HOME}" ]]; then
command curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -;
command curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -;
curl -sSL https://get.rvm.io | bash -s stable --ruby;
fi
echo "rvm_silence_path_mismatch_check_flag=1" > ~/.rvmrc;
[[ -s ${RVM_HOME}/scripts/rvm ]] && source ${RVM_HOME}/scripts/rvm;
[[ -s ${RVM_HOME}/scripts/completion ]] && source ${RVM_HOME}/scripts/completion;
# ! [[ -z "$(which rvm)" ]] && rvm use ruby-3.0.0 > /dev/null;