Sha256: d47f295b1c6c730ca650c0a86c35b25640167ae077c307fcf3c9247d27735063
Contents?: true
Size: 535 Bytes
Versions: 11
Compression:
Stored size: 535 Bytes
Contents
#!/usr/bin/env bash # Source a .rvmrc file in a directory after changing to it, if it exists. cd() { builtin cd "$@" if [[ "$rvm_project_rvmrc" != 0 ]] ; then local cwd ; cwd=$(pwd) while : ; do if [[ -f "$cwd/.rvmrc" ]] ; then source "$cwd/.rvmrc" ; break ; fi cwd=$(dirname $cwd) if [[ -z "$cwd" ]] || [[ "$HOME" = "$cwd" ]] || [[ "/" = "$cwd" ]] ; then if [[ "$rvm_project_rvmrc_default" != 0 ]] ; then rvm default 1>/dev/null 2>&1 fi break fi done fi }
Version data entries
11 entries across 11 versions & 1 rubygems