Sha256: 4fa1b28ceadf58175b4ee3aaca29660dddd904ab1f7e40a56305bca2b255fd58

Contents?: true

Size: 1.93 KB

Versions: 1

Compression:

Stored size: 1.93 KB

Contents

#!/usr/bin/env bash

# Ensure that the extended globs feature is turned on.
if [[ -n "${ZSH_VERSION:-""}" ]] ; then
  setopt extendedglob
else
  if [[ -n "${BASH_VERSION:-""}" ]] ; then
    shopt -s extglob # Extended globs
  else
    printf "%s\n" "What the heck kind of shell are you running here???"
  fi
fi

if [[ ${rvm_selfcontained:-1} -eq 0 ]] ; then
  rvm_bin_path="${rvm_bin_path:-"${rvm_prefix}bin"}"
  rvm_man_path="${rvm_man_path:-"${rvm_prefix}share/man"}"
  rvm_rc_files="${rvm_rc_files:-"/etc/profile /etc/zshenv"}"
else
  rvm_man_path="${rvm_man_path:-"$rvm_path/man"}"
  rvm_bin_path="${rvm_bin_path:-"$rvm_path/bin"}"
  rvm_rc_files="${rvm_rc_files:-"$HOME/.bash_profile $HOME/.bashrc $HOME/.zshenv"}"
fi

[[ -n "${rvm_archflags:-""}" ]] && rvm_make_flags_flag=1

rvm_archives_path="${rvm_archives_path:-"$rvm_path/archives"}"
rvm_src_path="${rvm_src_path:-"$rvm_path/src"}"
rvm_repo_path="${rvm_repo_path:-"$rvm_path/repos"}"
rvm_log_path="${rvm_log_path:-"$rvm_path/log"}"
rvm_docs_path="${rvm_docs_path:-"$rvm_path/docs"}"

rvm_gems_path="${rvm_gems_path:-"$rvm_path/gems"}" # Leave this one in global, need to override for system installs (for now).

rvm_gems_cache_path="${rvm_gems_cache_path:-"$rvm_gems_path/cache"}"
rvm_rubies_path="${rvm_rubies_path:-"$rvm_path/rubies"}"
rvm_config_path="${rvm_config_path:-"$rvm_path/config"}"
rvm_environments_path="${rvm_environments_path:-"$rvm_path/environments"}"
rvm_wrappers_path="${rvm_wrappers_path:-"$rvm_path/wrappers"}"
rvm_hooks_path="${rvm_hooks_path:-"$rvm_path/hooks"}"

rvm_tmp_path="${rvm_tmp_path:-"$rvm_path/tmp"}"
rvm_usr_path="${rvm_usr_path:-"$rvm_path/usr"}"

rvm_project_rvmrc="${rvm_project_rvmrc:-1}"
rvm_project_rvmrc_default="${rvm_project_rvmrc_default:-0}"

export rvm_path rvm_rubies_path rvm_archives_path rvm_src_path rvm_log_path rvm_bin_path rvm_gems_path rvm_config_path rvm_tmp_path rvm_hooks_path rvm_gems_cache_path rvm_gemset_separator rvm_repo_path rvm_selfcontained

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rvm-1.0.7 scripts/initialize