我遇到与此处列出的类似的问题: 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)玩得很好?
答案 0 :(得分:1)
你需要限制加载的OMZ插件的数量,基本上只使用那些真正为你提供你需要的功能的插件,如果你不知道插件提供了什么功能,请不要安装以防万一,通常那些插件在rvm已做的事情上做了一些额外的事情。
一如既往:系统为您做的事情也对您有所帮助。