ruby on rails - Loading rvm environment in restored OS X Terminal windows -


If I leave the OS X terminal when the shell is positioned in an RVM-managed directory (i.e., a rail app) , And then restart the terminal, OS X also places the shell in those directories where it was first. However, RVM does not seem to reset gemset in use (eg Gemfile: # ruby-gemset).

Is it just me? Have I lifted something up? (Always possible!)

If other people have the same issue, then has anyone solved it or has worked around?

Currently, I use the CD ~; CD - , and RVM's "CD" implementation sets things up properly but it's a bit annoying. In fact, I did not want the terminal to save the CWD in the first place; So I will only need a cd

A base gemset setup in RVM First

  rvm gemset gemsetnamehere   

If you want to use that gemset as the default, you do the same:

  Using RVM 1.9.2-head@gemsetnamehere --default   

The above assumption is that you are using Rabbi 1.9.2-head and You want the gemset to be created just now gemsetnamehere Check the RVM documents here:

Also, if you want it for that directory only one in the root of the project. Create the Rvmrc file and include something in it:

  rvm 1.9.2-head2@gemsetnamehere   

Hope it helps.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -