SHARE
TWEET

Content of ~/.rvm/scripts/rvm

a guest Jan 22nd, 2014 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env bash
  2.  
  3. # rvm : Ruby enVironment Manager
  4. # https://rvm.beginrescueend.com
  5. # https://github.com/wayneeseguin/rvm
  6.  
  7. # TODO: Alter the variable names to make sense
  8. \export HOME rvm_prefix rvm_user_install_flag rvm_path
  9. HOME="${HOME%%+(\/)}" # Remove trailing slashes if they exist on HOME
  10.  
  11. if (( ${rvm_ignore_rvmrc:=0} == 0 ))
  12. then
  13.   for rvmrc in /etc/rvmrc "$HOME/.rvmrc"
  14.   do
  15.     if [[ -f "$rvmrc" ]]
  16.     then
  17.       if \grep '^\s*rvm .*$' "$rvmrc" >/dev/null 2>&1
  18.       then
  19.         printf "\nError:
  20.        $rvmrc is fo
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top