我杀死了 rvm 现在我有一条 bash 消息

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7694151/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 00:56:02  来源:igfitidea点击:

I killed rvm now I have a bash message

rubybashrvmimplode

提问by JZ.

I decided to kill rvm, using the rvm implodecommand.

我决定使用 rvmimplode命令杀死 rvm 。

When I run cdin osx terminal I get this message:

当我cd在 osx 终端中运行时,我收到以下消息:

 ~/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?

我该如何纠正?

回答by Candide

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.

首先关闭所有终端并再次打开它们。如果这不起作用,请编辑您的 .bash_profile(检查 .bashrc 以确保)并删除所有与 rvm 有关的行。然后关闭终端并再次打开它以重新加载 bash。

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

另外,删除 ~/.rvm 只是为了确定。

回答by ddd

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.

Ingenu 是正确的,一旦您删除 RVM,您将需要关闭终端会话或 shell 会话,以便完全清除所有与 RVM 相关的环境变量和设置。