RVM 命令:source ~/.rvm/scripts/rvm

编程入门 行业动态 更新时间:2024-10-25 12:29:40
本文介绍了RVM 命令:source ~/.rvm/scripts/rvm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在通过示例教程系列来了解 Rails.在提出问题之前,我会尽力找到解决方案,因此,如果我错过了任何内容,我深表歉意.

I'm going through the rails by example tutorial series. I'm trying my best to find solutions prior to asking questions, so if I have missed anything I apologise.

每次我需要从终端的命令行启动 RVM 时,我都需要敲一个命令,以便 RVM 初始化:source ~/.rvm/scripts/rvm

Every time I need to boot up RVM from the command line in terminal I need to punch a command so that RVM initialises: source ~/.rvm/scripts/rvm

这正常吗?除非我事先输入此代码,否则我似乎无法使 RVM 命令工作.注意我只需要输入一次命令,而不是每次需要输入 RVM 命令时.

Is this normal? It seems that I cant get the RVM commands to work unless I punch in this code prior. Note I only have to enter the command once, not every time I need to enter an RVM command.

非常感谢您的帮助.

推荐答案

把它放在你的 ~/.profile 或 ~/.bashrc 中:

Put this in your ~/.profile or ~/.bashrc:

# This loads RVM into a shell session. [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

因此您不必为每个会话手动输入它.

So you don't have to manually type it for every session.

更多推荐

RVM 命令:source ~/.rvm/scripts/rvm

本文发布于:2023-06-08 06:33:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/576183.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:命令   RVM   source   scripts   rvm

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!