Sha256: 0f3cd53921064bb0546bf61f8186ef616bb82af12d3ef3b4d48d4c6d29c89d89

Contents?: true

Size: 429 Bytes

Versions: 85

Compression:

Stored size: 429 Bytes

Contents

#!/bin/bash

# Calculates a default rvm path

# Check first.
if [[ -n "$rvm_path" ]]; then
  echo "$rvm_path"
  exit
fi

# Load extra files.

[[ -s ~/.rvmrc ]] && source ~/.rvmrc >/dev/null 2>&1
[[ -s /etc/.rvmrc ]] && source /etc/rvmrc >/dev/null 2>&1

if [[ -n "$rvm_path" ]]; then
  echo "$rvm_path"
elif [[ -d ~/.rvm ]]; then
  echo "~/.rvm"
elif [[ -d /usr/local/rvm ]]; then
  echo "/usr/local/rvm"
else
  exit 1
fi

exit 0

Version data entries

85 entries across 85 versions & 2 rubygems

Version Path
rvm-1.6.23 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.22 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.21 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.20 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.19 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.16 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.13 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.12 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.11 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.10 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.9 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.8 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.7 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.6 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.5 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.4 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.3 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.2 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.5.2 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.5.1 lib/rvm/shell/calculate_rvm_path.sh