Advertisement
Guest User

Content of ~/.rvm/scripts/rvm

a guest
Jan 22nd, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.54 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement