0

When cding into a directory containig an .rvmrc, RVM usually prompts the user about the change in ruby/gemset. For example:

Using /Users/USERNAME/.rvm/gems/ruby-2.2.1 with gemset GEMSETNAME

However, when using the preferred .ruby-version and .ruby-gemset, RVM does not print this notice, and silently changes the ruby version and gemset.

How can one configure RVM to print the typical ruby/gemset switching message when only a .ruby-version and .ruby-gemset exist in a project directory? The similar question "Not getting info message after converting rvm from .rvmrc to .ruby-version" specifies a solution that requires the presence of .rvmrc. Doing something similar with a $HOME/.rvmrc is close, but this question is asking how to get the notice without this approach, which feels like a bit of a hack.

Community
  • 1
  • 1
ybakos
  • 8,152
  • 7
  • 46
  • 74

1 Answers1

2

Try this :

echo rvm_use_flag=2 >> ~/.rvmrc
John Slegers
  • 45,213
  • 22
  • 199
  • 169
Licysca
  • 1,167
  • 10
  • 4
  • "Doing something similar with a $HOME/.rvmrc is close, but this question is asking how to get the notice without this approach." – ybakos Jan 21 '16 at 13:51