mart7ini
mart7ini

Reputation: 1529

rvm environment load

what I need to write to my environment to repair my rvm? (and when I had put [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" into a top of .zshenv file and the .zshrc file nothing happen)

-> % rails
zsh: correct 'rails' to 'tail' [nyae]? %
sky7@hi7sky [03:09:14] [~] 
-> % rvm reload
RVM reloaded!
sky7@hi7sky [03:09:17] [~] 
-> % rails --version
Rails 3.2.1

How I can fix it? thx

And more info:

$ diff before_reload_env after_reload_env 
15c15
< PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/var/lib/gems/1.8/bin:/home/sky7/.rvm/bin
---
> PATH=/home/sky7/.rvm/gems/ruby-1.9.3-head@edge/bin:/home/sky7/.rvm/gems/ruby-1.9.3-head@global/bin:/home/sky7/.rvm/rubies/ruby-1.9.3-head/bin:/home/sky7/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/var/lib/gems/1.8/bin:/home/sky7/.rvm/bin
82a83,85
> rvm_ruby_string=ruby-1.9.3-head
> rvm_env_string=ruby-1.9.3-head@edge
> __rvm_env_loaded=-1

Upvotes: 1

Views: 672

Answers (2)

mpapis
mpapis

Reputation: 53158

to fix your initialization files use:

rvm get head --auto

then make sure you read:

Upvotes: 1

user191766
user191766

Reputation:

Have you tried reloading your shell? source ~/.zshrc. If that doesn't work try opening a new terminal tab or window and see if your rvm environment is loaded now.

Upvotes: 0

Related Questions