chruby icon indicating copy to clipboard operation
chruby copied to clipboard

move ruby discovery code into a function

Open kbrock opened this issue 2 years ago • 2 comments

When you install a new ruby in a different terminal shell, chruby does not pick up on the new ruby version.

The solution is to to source chruby.sh again. Introducing chruby_discover which will allow any shell to pick up on the new ruby versions


Yes, I was trying to "optimize" this functionality in #492 - but this PR is not an optimization play.

I have had this function defined in my bashrc for a while and thought others may want it as well.

kbrock avatar Apr 26 '23 16:04 kbrock

Since you're adding a new function, I would technically need to merge this into the 0.4.0 branch.

postmodern avatar Apr 26 '23 17:04 postmodern

Fixed. Thanks for the feedback. I forgot all about tabs.

It is ok if you don't want to go this route and bump the major version. If you like this route, do you need me to add documentation or changelog or anything?

kbrock avatar Apr 27 '23 11:04 kbrock