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.11.3.3 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.11.3.2 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.11.3.1 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.11.3 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.9.2 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.9.1 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.9.0 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.8.6 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.8.5 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.8.4 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.8.3 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.8.2 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.8.1 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.7.0 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.32 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.31 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.30 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.29 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.27 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.6.24 lib/rvm/shell/calculate_rvm_path.sh