chruby icon indicating copy to clipboard operation
chruby copied to clipboard

move ruby discovery code into a function

Open kbrock opened this issue 1 year 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