22

I decided to kill rvm, using the rvm implode command.

When I run cd in osx terminal I get this message:

 ~/projects $ cd
-bash: /Users/boris/.rvm/scripts/initialize: No such file or directory
-bash: /Users/boris/.rvm/scripts/hook: No such file or directory

How can I correct this?

Caffeinated
  • 11,982
  • 40
  • 122
  • 216
JZ.
  • 21,147
  • 32
  • 115
  • 192

2 Answers2

48

First of all close all terminals and open them again. If that didn't work, edit your .bash_profile (check .bashrc to be sure) and remove all lines that have to do with rvm. Then close out the terminal and open it again in order to reload bash.

Also, remove ~/.rvm just to be sure.

Mac_Cain13
  • 3,611
  • 2
  • 24
  • 38
Candide
  • 30,469
  • 8
  • 53
  • 60
  • 2
    You can also do "source .bash_profile" after editing the file in order to reload it. There is no need to close and re-open the terminal window. – Deleteman Oct 08 '11 at 01:30
  • 5
    @Deleteman: But that won't remove the things that shouldn't be there, it will only reset what is in your `.bash_profile`. – mu is too short Oct 08 '11 at 01:33
  • @muistooshort Just to clarify, it won't reset your .bash_profile content, it will reload it's content into the environment. But then again, you might be right about the no removing what shouldn't be there part.. can't try it right now, so I'm not 100% sure. – Deleteman Oct 08 '11 at 01:37
  • @Deleteman: I'm just thinking that there might be leftover aliases and the like that you might want to get rid of. – mu is too short Oct 08 '11 at 02:04
  • 1
    @muistooshort, you are right. I faced the same problem. Even after running `source` commands I was facing the issue so I closed the terminal and opened it again. – Kashif Umair Liaqat Aug 27 '19 at 21:24
6

Ingenu is correct, once you remove RVM you will need to close out the terminal session or shell session in order to completely wipe out all RVM related environment variables and settings.

ddd
  • 1,925
  • 12
  • 19