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
gemrage-0.1.2 vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell/calculate_rvm_path.sh
rvm-1.0.14 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.0.13 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.0.11 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.0.10 lib/rvm/shell/calculate_rvm_path.sh