Is there a way to select the default system-wide ruby through chruby
?
Eg:
$ which ruby
/usr/bin/ruby
Is there a way to select the default system-wide ruby through chruby
?
Eg:
$ which ruby
/usr/bin/ruby
Copyright © 2021 Jogjafile Inc.
If you want to change back to the default system
ruby
, just use:If you have more than one system-installed
ruby
(eg/usr/bin/ruby
and/usr/local/bin/ruby
) and want to use a different one than is listed bywhich ruby
, you can:Then
chruby
will listusr/local
as a "version" of ruby.For the general case (possibly multiple rubies in the path), add the following to your shell startup: