Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (42 sloc) 1.138 kb
#!/usr/bin/env bash
# Base is a collection of general files + commonly included setup functions.
#
# Setup environment parameters.
#
[[ -z "${ZSH_VERSION:-}" ]] ; __array_start=$?
#
# Load general scripts and functions
#
#
# Load the general scripts.
# Use rvm_base_except="selector", for example, to override the loading.
#
export rvm_path="${rvm_path%%+(\/)}"
true ${rvm_scripts_path:="$rvm_path/scripts"}
# Initialize all main RVM variables.
source "$rvm_scripts_path/initialize"
case "rvm_base_except" in
*selector*)
true # do not load.
;;
*)
source "$rvm_scripts_path/selector"
;;
esac
scripts=(logging utility init cleanup env rvmrc install environment gemset db)
for entry in ${scripts[@]} ; do
source "$rvm_scripts_path/functions/$entry"
done
unset scripts entry rvm_base_except
case $- in
*i*)
true # do nothing.
;;
*)
# Cleanup RVM temporary files on exit if we are loaded from a script.
if command -v __rvm_cleanup_tmp >/dev/null 2>&1 ; then
# Only cleanup if the function to do so is defined :)
trap "set +e; __rvm_cleanup_tmp '$$'" 0 1 2 3 15
fi
;;
esac
Jump to Line
Something went wrong with that request. Please try again.