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.1.4 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.1.3 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.1.2 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.1.1 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.1.0 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.0.23 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.0.22 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.0.21 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.0.20 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.0.19 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.0.18 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.0.17 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.0.15 lib/rvm/shell/calculate_rvm_path.sh
gemrage-1.0.0 vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell/calculate_rvm_path.sh
gemrage-0.4.1 vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell/calculate_rvm_path.sh
gemrage-0.4.0 vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell/calculate_rvm_path.sh
gemrage-0.3.2 vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell/calculate_rvm_path.sh
gemrage-0.3.1 vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell/calculate_rvm_path.sh
gemrage-0.3.0 vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell/calculate_rvm_path.sh
gemrage-0.2.0 vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell/calculate_rvm_path.sh