postmodern / chruby

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

Support envar to disable auto #337

Closed sheldonh closed 9 years ago

sheldonh commented 9 years ago

I can't submit a PR with tests for this, because http://rvm.io/binaries/ubuntu/15.04 doesn't exist yet.

It would be great if chruby_auto in auto.sh had a guard clause that aborted if some environment variable was set, e.g. RUBY_AUTO_DISABLE.

At least on Ubuntu, chruby's setup helper arranges for chruby.sh and auto.sh to be loaded automatically from /etc/profile.d/chruby.sh.

It would be nice to be able to set an envar in my .bashrc that inhibits auto behaviour on such systems.

sheldonh commented 9 years ago

@postmodern plans to tackle this from a different angle (see #338).