Sha256: 7227c1da9659dbd1371d373612b22fe22f9024251a264ac7406aa70076ad6692

Contents?: true

Size: 1.35 KB

Versions: 3

Compression:

Stored size: 1.35 KB

Contents

#!/usr/bin/env bash

# rvm : Ruby Version Manager
# http://rvm.beginrescueend.com
# http://gitub.com/wayneeseguin/rvm

if [[ "$rvm_loaded_flag" != "1" ]] || [[ "$rvm_reload_flag" = "1" ]] ; then
  unset rvm_reload_flag

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

  if [[ -z "$rvm_path" ]] ; then
    unset rvm_path
    if [[ "root" = "$(whoami)" ]] ; then
      rvm_path="/usr/local/rvm"
    else
      if [[ -d "$HOME/.rvm" ]] ; then rvm_path="$HOME/.rvm" ; fi
      if [[ -d "/usr/local/rvm" ]] && [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then
        rvm_path="${rvm_path:-"/usr/local/rvm"}"
      fi
    fi
  fi
  if [[ -d "$rvm_path" ]] ; then
    source $rvm_path/scripts/array
    source $rvm_path/scripts/initialize
    source $rvm_path/scripts/utility
    source $rvm_path/scripts/selector
    source $rvm_path/scripts/cli
    #source $rvm_path/scripts/gems
    source $rvm_path/scripts/libraries
    source $rvm_path/scripts/cd

    rvm_loaded_flag=1

    rvm_version="$(cat "${rvm_path}/lib/VERSION.yml" | tail -n 3 | sed 's/^.*: //g' | tr "\n" '.' | sed 's/\.$//')" ; export rvm_version

    alias rvm-restart="source '${rvm_path}/scripts/rvm'"

    if [[ -s "$rvm_path/default" ]] ; then source "$rvm_path/default" ; fi
  else
    echo -e "\$rvm_path is not set. rvm cannot load."
  fi
fi

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rvm-0.0.96 scripts/rvm
rvm-0.0.95 scripts/rvm
rvm-0.0.93 scripts/rvm