Sha256: 5edd1a9252a59cd77c27c14a15086b2a60397da06b17dd7520b14853e4b2b040

Contents?: true

Size: 901 Bytes

Versions: 8

Compression:

Stored size: 901 Bytes

Contents

#!/usr/bin/env bash

if [[ -f /etc/rvmrc ]] ; then source /etc/rvmrc ; fi
if [[ -f "$HOME/.rvmrc" ]] ; then source "$HOME/.rvmrc" ; fi
if [[ -z "$rvm_prefix" ]] ; then unset rvm_prefix ; fi
if [[ -z "$rvm_path" ]] ; then unset rvm_path ; fi

if [[ -z "$rvm_prefix" ]] ; then 
  if [[ "root" = "$(whoami)" ]] ; then
    rvm_prefix="/usr/local" 
  else
    rvm_prefix="$HOME"
  fi
fi

if [[ -z "$rvm_path" ]] ; then
  unset rvm_path
  if [[ "root" = "$(whoami)" ]] ; then
    rvm_path="$rvm_prefix/rvm"
  else
    if [[ -d "$HOME/.rvm" ]] && [[ -s "$HOME/.rvm/scripts/rvm" ]]; then
      rvm_path="$HOME/.rvm"
    elif [[ -d "$rvm_prefix/rvm" ]] && [[ -s "$rvm_prefix/rvm/scripts/rvm" ]] ; then
      rvm_path="$rvm_prefix/rvm"
    else
      rvm_path="$HOME/.rvm"
    fi
  fi
fi

rvm_scripts_path="${rvm_scripts_path:-"$rvm_path/scripts"}"
source $rvm_scripts_path/rvm

unset rvm_interactive

rvm "$*"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rvm-0.1.27 binscripts/rvm
rvm-0.1.26 binscripts/rvm
rvm-0.1.24 binscripts/rvm
rvm-0.1.23 binscripts/rvm
rvm-0.1.22 binscripts/rvm
rvm-0.1.21 binscripts/rvm
rvm-0.1.20 binscripts/rvm
rvm-0.1.19 binscripts/rvm