Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"__rvm_do_with_env_before" and "__rvm_after_cd" when doing "cd"

I recently uninstalled RVM (mostly I think). When I "cd" in the terminal I get:

Adams-MacBook-Pro% cd
__rvm_do_with_env_before:source:5: no such file or directory: /Users/adam/.rvm/scripts/initialize
__rvm_after_cd:source:5: no such file or directory: /Users/adam/.rvm/scripts/hook

How do I fix this? I'm guessing it's because I didn't completely uninstall RVM. What steps do I have left to do after I rvm implode

Thanks

like image 535
AdamT Avatar asked Jul 04 '12 17:07

AdamT


2 Answers

it should be enough to reopen your terminal, in rare cases relogin/restart is needed.

like image 80
mpapis Avatar answered Dec 03 '22 12:12

mpapis


try this:

  1. gedit .zshrc or .bash_profile or other depending of your shell
  2. remove anything present like
    PATH="$PATH:$HOME/.rvm/bin"
    [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
    source /home/rahul/.rvm/scripts/rvm
    or other related to rvm.

after that close all terminal sessions then reopen it again and try "cd" any directory, it may resolved by now!

like image 35
Rahul Kashyap Avatar answered Dec 03 '22 14:12

Rahul Kashyap