1

我有一个与此处列出的问题类似的问题: RVM and OSX Lion - RVM 'forgets' gemsets on system restart

当我简单地关闭终端时,我的 RVM 忘记了 gemsets。我已经完成了rvm use --default 1.9.3-p194@mygemset,在关闭终端并重新打开后,rvm gemset list我得到了

➜  ~  rvm gemset list

gemsets for system (found in /Users/adam/.rvm/gems/system)
   *

以下是您需要的附加信息:我在 OSX Lion 上,使用 Oh-my-zsh

➜  ~  rvm --version

rvm 1.14.5 (master) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

➜  ~  rvm info

system:

  system:
    uname:       "Darwin Adams-MacBook-Pro.local 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64"
    bash:        "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11)"
    zsh:         "/bin/zsh => zsh 4.3.11 (i386-apple-darwin11.0)"

  rvm:
    version:      "rvm 1.14.5 (master) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]"
    updated:      "2 days 4 hours 42 minutes 33 seconds ago"

  homes:
    gem:          "not set"
    ruby:         "not set"

  binaries:
    ruby:         "/Users/adam/.rvm/rubies/ruby-1.9.3-p125/bin/ruby"
    irb:          "/Users/adam/.rvm/rubies/ruby-1.9.3-p125/bin/irb"
    gem:          "/Users/adam/.rvm/rubies/ruby-1.9.3-p125/bin/gem"
    rake:         "/Users/adam/.rvm/gems/ruby-1.9.3-p125@global/bin/rake"

  environment:
    PATH:         "/Users/adam/.rvm/gems/ruby-1.9.3-p125@rails32/bin:/Users/adam/.rvm/gems/ruby-1.9.3-p125@global/bin:/Users/adam/.rvm/rubies/ruby-1.9.3-p125/bin:/Users/adam/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin"
    GEM_HOME:     ""
    GEM_PATH:     ""
    MY_RUBY_HOME: ""
    IRBRC:        ""
    RUBYOPT:      ""
    gemset:       ""

谢谢

编辑:我刚刚删除了 oh-my-zsh 并且 rvm 似乎工作正常。我怎样才能让这两个(RVM 和 oh-my-zsh)发挥得很好?

4

1 回答 1

1

您需要限制加载的 OMZ 插件的数量,基本上只使用那些真正为您提供所需功能的插件,如果您不知道插件提供了哪些功能,请不要安装它以防万一,通常是那些插件比 rvm 已经做了一些额外的事情。

与往常一样:系统为您做的事情也对您做。

于 2012-07-04T23:02:55.847 回答