chruby
chruby copied to clipboard
Properly handle setting and reverting to a default Ruby
trafficstars
We need a better way to set and revert to a "default" selected Ruby. Simply adding chruby ... to one's .bashrc does not take effect after chruby_auto resets the current Ruby.
See the chruby_default branch.
Some thoughts from @havenwood in IRC.
- Should we use an agnostic variable name to promote compatibility?
RUBY_DEFAULT_VERSIONinstead ofCHRUBY_DEFAULT? - Should we store the default version in a config file (ex:
~/.config/chruby/default)? So the default version can be set once and be picked up by all shells.