postmodern / chruby

Changes the current Ruby
MIT License
2.85k stars 190 forks source link

chruby populates $rvm_path too late #402

Open mcandre opened 5 years ago

mcandre commented 5 years ago

If rvm is not loaded by .bashrc early enough, then the chruby scripts fail to load. This happens because RUBIES=($( ls -1d "$rvm_path/rubies"/* 2>/dev/null )) occurs on a line before $rvm_path is corrected by chruby.

As a workaround, I am explicitly sourcing RVM in my bash configuration before I source chruby.